From: | Greg Stark <greg(dot)stark(at)enterprisedb(dot)com> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | Greg Stark <stark(at)enterprisedb(dot)com>, Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>, Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: regression test crashes at tsearch |
Date: | 2009-03-02 19:31:48 |
Message-ID: | 2B75163A-B090-4916-9A51-D1DD30916229@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hmm well the KOI8 tests unsurprisingly produce random results on non-
KOI8 input. It's pure chance you didn't get EILSEQ.
What errno did you get for the C locale test? On which input character?
Perhaps it's sihnalljng EILSEQ for every byte >0x80 ? That seems
broken to me but perhaps not to a glibc pedant out there.
--
Greg
On 2 Mar 2009, at 19:17, Teodor Sigaev <teodor(at)sigaev(dot)ru> wrote:
>> Say what? What OSes is that?
> See attached test program. It tries to convert multibyte russian
> word in UTF8 to wide char with C, ru_RU-KOI8-R and ru_RU.UTF-8
> locales. The word contains 6 letters.
>
> FreeBSD 7.2 (short output):
> ========C==========
> mbstowcs returns 12
> ========ru_RU.KOI8-R==========
> mbstowcs returns 12
> ========ru_RU.UTF-8==========
> mbstowcs returns 6
>
> Linux 2.6.23 libc 2.5 (short output):
> ========C==========
> mbstowcs returns -1
> ========ru_RU.KOI8-R==========
> mbstowcs returns 12
> ========ru_RU.UTF-8==========
> mbstowcs returns 6
>
>
> The program also prints test of iswalpha:
> Linux 2.6.23 libc 2.5 (full output):
> ========C==========
> mbstowcs returns -1
> ERROR
> ========ru_RU.KOI8-R==========
> mbstowcs returns 12
> 0-th chacter is alpha
> 1-th chacter is NOT alpha
> 2-th chacter is alpha
> 3-th chacter is NOT alpha
> 4-th chacter is alpha
> 5-th chacter is NOT alpha
> 6-th chacter is alpha
> 7-th chacter is NOT alpha
> 8-th chacter is alpha
> 9-th chacter is NOT alpha
> 10-th chacter is alpha
> 11-th chacter is NOT alpha
> ========ru_RU.UTF-8==========
> mbstowcs returns 6
> 0-th chacter is alpha
> 1-th chacter is alpha
> 2-th chacter is alpha
> 3-th chacter is alpha
> 4-th chacter is alpha
> 5-th chacter is alpha
> <t.c.gz>
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2009-03-02 19:37:17 | Re: [BUGS] BUG #4680: Server crashed if using wrong (mismatch) conversion functions |
Previous Message | Tom Lane | 2009-03-02 19:19:38 | Re: [BUGS] BUG #4680: Server crashed if using wrong (mismatch) conversion functions |