Re: broken locale in 7.0.2 without multibyte support (FreeBSD 4.1-RELEASE) ?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, peter_e(at)gmx(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: broken locale in 7.0.2 without multibyte support (FreeBSD 4.1-RELEASE) ?
Date: 2000-09-17 19:52:12
Message-ID: Pine.GSO.3.96.SK.1000917224437.26064f-100000@ra
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 17 Sep 2000, Tatsuo Ishii wrote:

> Date: Sun, 17 Sep 2000 11:05:42 +0900
> From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
> To: oleg(at)sai(dot)msu(dot)su
> Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, peter_e(at)gmx(dot)net, pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] broken locale in 7.0.2 without multibyte support (FreeBSD 4.1-RELEASE) ?
>
> > INteresting,
> > that I tried to find out what cause the problem just compiling
> > backend/utils/adt/ with -funsigned-char option but this won't help.
> > I thought (as in earlier time) locale-aware code are in this
> > directory. The problem already exists in 6.5 release,
> > so I'm not sure recent Peter's changes could cause the problem
>
> You might want to compile backend/regex also with -funsigned-char
> option.

Thanks,

backend/regex/regcomp.c cause the problem. I compiled only this file
with -funsigned-char option and the problem gone away !
Also, I know that in case of --enable-multibyte I dont' have any problem,
so in principle it's enough to look into
#ifdef MULTIBYTE sections in backend/regex/regcomp.c
and made according
#ifdef USE_LOCALE sections

Tatsuo, am I right and what critical sections in backend/regex/regcomp.c ?

Regards,

Oleg

> --
> Tatsuo Ishii
>

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-09-17 20:29:19 pg_dump tries to do too much per query
Previous Message Oleg Bartunov 2000-09-17 18:56:09 Re: broken locale in 7.0.2 without multibyte support (FreeBSD 4.1-RELEASE) ?