Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf4271f

Browse files
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

7 files changed

+241
-125
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp