Обсуждение: psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.

Поиск
Список
Период
Сортировка
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.