Re: [GENERAL] trouble with to_char('L')
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
From: Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
To: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>, Hiroshi Inoue <inoue@tpf.co.jp>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-04-20T08:34:09Z
Lists: pgsql-hackers, pgsql-general
Attachments
- pg_locale_20100420.patch (application/octet-stream) patch
Magnus Hagander <magnus@hagander.net> wrote: > > 1. setlocale(LC_CTYPE, lc_monetary) > > 2. setlocale(LC_MONETARY, lc_monetary) > > 3. lc = localeconv() > > 4. pg_do_encoding_conversion(lc->xxx, > > FROM pg_get_encoding_from_locale(lc_monetary), > > TO GetDatabaseEncoding()) > > 5. Revert LC_CTYPE and LC_MONETARY. A patch attached for the above straightforwardly. Does this work? Note that #ifdef WIN32 parts in the patch are harmless on other platforms even if they are enabled. > Let's work off what we have now to start with at least. Bruce, can you > comment on that thing about the extra parameter? And UTF8? Regards, --- Takahiro Itagaki NTT Open Source Software Center