Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8F0A41337B4E for ; Mon, 7 Mar 2011 13:20:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 55022-03 for ; Mon, 7 Mar 2011 17:20:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5B6BB133616B for ; Mon, 7 Mar 2011 13:20:46 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p27HKhW8007658; Mon, 7 Mar 2011 12:20:44 -0500 (EST) To: =?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= cc: pgsql-bugs@postgresql.org Subject: Re: Missing Bug-Report #5904? In-reply-to: <4D70ADE8.2030500@meisterderspiele.de> References: <4D70ADE8.2030500@meisterderspiele.de> Comments: In-reply-to =?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= message dated "Fri, 04 Mar 2011 10:16:24 +0100" Date: Mon, 07 Mar 2011 12:20:43 -0500 Message-ID: <7657.1299518443@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/131 X-Sequence-Number: 29641 =?ISO-8859-15?Q?Torsten_Z=FChlsdorff?= 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