psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses. - Mailing list pgsql-odbc

From Ketop
Subject psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.
Date
Msg-id tencent_A514FB72932C5A65AB315DFA66F06D20140A@qq.com
Whole thread Raw
List 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 by date:

Previous
From: Karl Aschbacher
Date:
Subject: Change the name of a function in the odbc-driver
Next
From: Karl Aschbacher
Date:
Subject: Change a query in the odbc driver