psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.

Поиск
Список
Период
Сортировка
От Ketop
Тема psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.
Дата
Msg-id tencent_A514FB72932C5A65AB315DFA66F06D20140A@qq.com
обсуждение исходный текст
Список pgsql-odbc
Dear Maintainers,
     I found a bug after upgrade psqlodbc-10.0.1 to 13.02.

a regex for filtering chinese input don`t work any more. It cause our process coredump. 

     By lookinng up the old mailling list, i found there had a change,
-  setlocale(LC_ALL, "")
+ setlocale(LC_CTYPE, "").

This change change process' LC_CTYPE to en_US.UTF-8 while LC_COLLATE remain default 'C'. 

https://www.postgresql.org/message-id/CADc-R5gZ6feQCzh%2BBKy6KXO-ymx3Y1APY2x%3Dw%2BbL8Fk2CdaOeQ%40mail.gmail.com


Please reconsider that patch is necessary again.

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Karl Aschbacher
Дата:
Сообщение: Change the name of a function in the odbc-driver
Следующее
От: Karl Aschbacher
Дата:
Сообщение: Change a query in the odbc driver