From: Tom Lane <tgl@sss.pgh.pa.us>
To: Torsten Zühlsdorff <foo@meisterderspiele.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Missing Bug-Report #5904?
Date: Mon, 07 Mar 2011 12:20:43 -0500
Message-ID: <7657.1299518443@sss.pgh.pa.us> (raw)
In-Reply-To: <4D70ADE8.2030500@meisterderspiele.de>
References: <4D70ADE8.2030500@meisterderspiele.de>
=?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= <foo@meisterderspiele.de> writes:
> Now for the Problem: There is a problem with the translation of the
> english word "March" to the german "März". Instead of "März" i get
> "MäRz" (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
> -----------
> MäRz 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, foo@meisterderspiele.de
Subject: Re: Missing Bug-Report #5904?
In-Reply-To: <7657.1299518443@sss.pgh.pa.us>
References: <4D70ADE8.2030500@meisterderspiele.de> <7657.1299518443@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox