Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Nils Philippsen writes:
>> Hmm. I ask myself whether this is desired behaviour, too.
> No, but it will take a lot of work to fix this, such as implementing our
> own locale library.
We should, however, look into using C99-spec <wctype.h> routines where
available --- the existing logic that depends on <ctype.h> stuff cannot
work with multibyte encodings. I am not sure if this has any
user-visible effects beyond upper()/lower().
regards, tom lane