Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E7360133740B for ; Tue, 8 Mar 2011 09:09:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81429-06 for ; Tue, 8 Mar 2011 13:09:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wikingerlegenden.de (static.154.214.46.78.clients.your-server.de [78.46.214.154]) by mail.postgresql.org (Postfix) with ESMTP id 5CBEB133616B for ; Tue, 8 Mar 2011 09:09:03 -0400 (AST) Received: from [192.168.23.242] (static.154.214.46.78.clients.your-server.de [78.46.214.154]) (authenticated bits=0) by wikingerlegenden.de (8.14.2/8.14.2) with ESMTP id p28D90RX096902; Tue, 8 Mar 2011 14:09:02 +0100 (CET) (envelope-from foo@meisterderspiele.de) Message-ID: <4D762A68.2070907@meisterderspiele.de> Date: Tue, 08 Mar 2011 14:08:56 +0100 From: =?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: Missing Bug-Report #5904? References: <4D70ADE8.2030500@meisterderspiele.de> <7657.1299518443@sss.pgh.pa.us> In-Reply-To: <7657.1299518443@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/148 X-Sequence-Number: 29658 Hello Tom, >> 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. Hm... encoding of the database is UTF8. The lc_ctype is 'C'. Maybe this may be a misconfiguration, but is there another way to get it work right than recreating the complete database with another locale? But don't that mean, that the translation of the timestamp to languages with other umlauts should also be wrong. For example to "fr_FR.UTF-8"? Greetings from Germany, Torsten