Fix psql crash while parsing SQL file whose encoding is different from
authorTatsuo Ishii <ishii@postgresql.org>
Sun, 2 Dec 2012 12:11:15 +0000 (21:11 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sun, 2 Dec 2012 12:21:40 +0000 (21:21 +0900)
commita7c53092d88bf9c617713389bc11f0670762b723
tree7956d9f18eb0b67a8d6e0e93e848912f399356eb
parent647b1bcdfd26f786248366e4fb25c0fd62006329
Fix psql crash while parsing SQL file whose encoding is different from
client encoding and the client encoding is not *safe* one. Such an
example is, file encoding is UTF-8 and client encoding SJIS. Patch
contributed by Jiang Guiqing.
src/bin/psql/psqlscan.l