| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Magnus Hagander <mha(at)sollentuna(dot)net> |
| Cc: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers-win32(at)postgresql(dot)org |
| Subject: | Re: UNICODE/UTF-8 on win32 |
| Date: | 2005-01-01 17:29:20 |
| Message-ID: | 200501011729.j01HTKW18386@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers-win32 |
Magnus Hagander wrote:
>
> >TODO updated:
> >
> > o Disallow encodings like UTF8 which PostgreSQL supports
> > but the operating system does not (already disallowed by
> > pginstaller)
> >
> > To fix UTF8, the data needs to be converted to UTF16 and then
> > the Win32 strcoll() can be used.
>
> Not quite. We'd use the wcscoll() function. strcoll() does not work with
> what windows calls "wide characters", which is UTF16, only with
> "multibyte characters". The whole point of the fix is to be able to use
> wcscoll() instead.
OK, updated.
> Also, not AFAIK, not only strcoll(), but also whatever is used to
> generate UPPER() and LOWER() needs to be fixed. Possibly more?
OK. I think you mean towupper().
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2005-01-02 11:55:55 | Re: UNICODE/UTF-8 on win32 |
| Previous Message | Magnus Hagander | 2005-01-01 17:14:45 | Re: UNICODE/UTF-8 on win32 |