Re: Missing Bug-Report #5904?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Torsten Zühlsdorff <foo(at)meisterderspiele(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Missing Bug-Report #5904?
Date: 2011-03-07 17:20:43
Message-ID: 7657.1299518443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= <foo(at)meisterderspiele(dot)de> writes:
> Now for the Problem: There is a problem with the translation of the
> english word "March" to the german "Mrz". Instead of "Mrz" i get
> "MRz" (with uppercase "r").

> You can reproduce it as follow:
> # SET lc_time = "de_DE.UTF-8";
> # SELECT to_char('2011-03-04 00:00:01'::date, 'TMMonth YYYY');
> to_char
> -----------
> MRz 2011

I can reproduce the above when the database encoding is not UTF8 or
lc_ctype isn't a UTF8 locale. The reason is that TMMonth implies
applying an initcap transformation to the month name retrieved from
the locale library. The only way initcap will make the right choice
of what to do with the "r" is if it thinks that is a letter.
Which it won't if the encoding is wrong or lc_ctype isn't set to
classify as a letter. This does not seem like a bug to me
though, just misconfiguration.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Owen Jacobson 2011-03-07 19:53:07 CREATEROLE does not permit commenting on newly-created roles
Previous Message SandraA 2011-03-07 17:20:15 Re: BUG #5899: Memory corruption when running psql