Re: Re: [BUGS] Turkish locale bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [BUGS] Turkish locale bug
Date
Msg-id 10934.982638041@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [BUGS] Turkish locale bug  (Larry Rosenman <ler@lerctr.org>)
Responses Re: Re: [BUGS] Turkish locale bug
List pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
> What about EBCDIC (IBM MainFrame, I.E. Linux on S/390, Z/390). 

Right, that was what I meant about not wanting to hardwire assumptions
about ASCII.

We could instead code it as
if (isupper(ch))  ch = ch + ('a' - 'A');

which I believe will work on EBCDIC as well as ASCII.  However, it still
breaks down if isupper() claims that anything besides 'A'..'Z' is
uppercase --- and the simple 'A' to 'Z' range check does *not* work in
EBCDIC.

It would be an interesting timewaster to try to get Postgres working on
an EBCDIC platform ;-).  I'm sure there are a lot of ASCII dependencies
lurking in the code that would need to be snuffed out.  However, that
doesn't mean that I'm eager to add another one here ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Re: [BUGS] Turkish locale bug
Next
From: Larry Rosenman
Date:
Subject: Re: Re: [BUGS] Turkish locale bug