- Notifications
You must be signed in to change notification settings - Fork5
Commitdf4271f
committed
Improve the method of localizing column names and other fixed strings in
psql's \d commands and other uses of printQuery(). Previously we would passthese strings through gettext() and then send them to the server as literalsin the SQL query. But the code was not set up to handle doubling of quotes inthe strings, causing failure if a translation attempted to use the wrong kindof quote marks, as indeed is now the case for (at least) the Frenchtranslation of \dFp. Another hazard was that gettext() would translate towhatever encoding was implied by the client's LC_CTYPE setting, which might bedifferent from the client_encoding setting, which would probably cause theserver to reject the query as mis-encoded. The new arrangement is to send theuntranslated ASCII strings to the server, and do the translations insideprintQuery() after the query results come back. Per report from GuillaumeLelarge and subsequent discussion.1 parent286049d commitdf4271f
File tree
7 files changed
+241
-125
lines changed- src/bin
- psql
- scripts
7 files changed
+241
-125
lines changed0 commit comments
Comments
(0)