Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdICC-0005Hx-M1 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 17 May 2013 10:47:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UdICC-0001UD-56 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 17 May 2013 10:47:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdICB-0001U8-LW for pgsql-pkg-debian@postgresql.org; Fri, 17 May 2013 10:47:31 +0000 Received: from tyrone.bluegap.ch ([5.9.120.207] helo=klepario.bluegap.ch) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdIC4-0001kM-8g for pgsql-pkg-debian@postgresql.org; Fri, 17 May 2013 10:47:31 +0000 Received: from [10.80.16.200] ([::ffff:31.24.12.47]) (AUTH: LOGIN markus@bluegap.ch, TLS: TLSv1/SSLv3, 256bits, CAMELLIA256-SHA) by klepario.bluegap.ch with ESMTPSA; Fri, 17 May 2013 12:47:03 +0200 id 0000000001019A20.51960AA7.00002612 Message-ID: <51960ADC.3080901@bluegap.ch> Date: Fri, 17 May 2013 12:47:56 +0200 From: Markus Wanner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="=_klepario.bluegap.ch-9746-1368787623-0001-2" To: Patryk Kordylewski CC: pgsql-pkg-debian@postgresql.org Subject: Re: Output Bug of pg_createcluster depending the used locale References: <5195FA83.9010604@imos.net> In-Reply-To: <5195FA83.9010604@imos.net> X-Enigmail-Version: 1.4.1 X-Pg-Spam-Score: -2.5 (--) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_klepario.bluegap.ch-9746-1368787623-0001-2 Content-Type: multipart/mixed; boundary="------------080407030804020001010809" This is a multi-part message in MIME format. --------------080407030804020001010809 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Patryk, On 05/17/2013 11:38 AM, Patryk Kordylewski wrote: > Checking the cluster it hast the german locale, so it seems to be just > an output bug? Looks like it, yes. At least my testing confirms this. The attached, very simple patch fixes this. Regards Markus Wanner --------------080407030804020001010809 Content-Type: text/x-patch; name="locale-display-fix.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="locale-display-fix.diff" # Correctly display a custom locale, if the user specified one. --- pg_createcluster 2013-04-12 12:32:08 +0000 +++ pg_createcluster 2013-05-17 10:42:11 +0000 @@ -348,9 +348,14 @@ error "$datadir already contains a version $existingver cluster"= ; } } else { - my $loc =3D setlocale (LC_CTYPE); + my $sys_loc =3D setlocale (LC_CTYPE); print "Creating new cluster $version/$cluster ...\n"; - print " config $confdir\n data $datadir\n locale $loc\n"; + print " config $confdir\n data $datadir\n"; + if ($locale) { + print " locale $locale (custom)\n"; + } else { + print " locale $sys_loc (default)\n"; + } init_db $version, $datadir, $owneruid, $ownergid, \@initdb_opts_from= _cli; $newcluster =3D 1; } --------------080407030804020001010809-- --=_klepario.bluegap.ch-9746-1368787623-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQQcBAEBCgAGBQJRlgrcAAoJEOhoLRs/MemzXjcf+wd8tHHCtjfjbyifMejp3z+m tcrqwpeyFUuq1xuk60oVfXnpY1UoUU8gDDFews8v5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