Re: BUG #7493: Postmaster messages unreadable in a Windows console
В списке pgsql-hackers по дате отправления:
| От | Alexander Law |
|---|---|
| Тема | Re: BUG #7493: Postmaster messages unreadable in a Windows console |
| Дата | |
| Msg-id | 5124BAC0.4060006@gmail.com обсуждение исходный текст |
| Ответ на | Re: BUG #7493: Postmaster messages unreadable in a Windows console (Noah Misch <noah@leadboat.com>) |
| Ответы |
Re: BUG #7493: Postmaster messages unreadable in a Windows console
|
| Список | pgsql-hackers |
Hello, 15.02.2013 02:59, Noah Misch wrote: >>> With your proposed change, the problem will resurface in an actual SQL_ASCII >>> database. At the problem's root is write_console()'s assumption that messages >>> are in the database encoding. pg_bind_textdomain_codeset() tries to make that >>> so, but it only works for encodings with a pg_enc2gettext_tbl entry. That >>> excludes SQL_ASCII, MULE_INTERNAL, and others. write_console() needs to >>> behave differently in such cases. >> Thank you for the notice. So it seems that "DatabaseEncoding" variable >> alone can't present a database encoding (for communication with a >> client) and current process messages encoding (for logging messages) at >> once. There should be another variable, something like >> CurrentProcessEncoding, that will be set to OS encoding at start and can >> be changed to encoding of a connected database (if >> bind_textdomain_codeset succeeded). > I'd call it MessageEncoding unless it corresponds with similar rigor to a > broader concept. Please look at the next version of the patch. Thanks, Alexander
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера