public inbox for [email protected]  
help / color / mirror / Atom feed
From: =?utf-8?B?S2V0b3A=?= <[email protected]>
To: =?utf-8?B?cGdzcWwtb2RiYw==?= <[email protected]>
Subject: psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.
Date: Tue, 11 Jul 2023 13:29:37 +0800
Message-ID: <[email protected]> (raw)

Dear Maintainers,
&nbsp; &nbsp; &nbsp;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.&nbsp;


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


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


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





Please reconsider that patch is necessary again.

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: psqlodbc multibyte.c setlocale(LC_CTYPE, 0) make process unable to use cregex to process chineses.
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox