pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Wanner <markus@bluegap.ch>
To: Patryk Kordylewski <pk@imos.net>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: Output Bug of pg_createcluster depending the used locale
Date: Fri, 17 May 2013 12:47:56 +0200
Message-ID: <51960ADC.3080901@bluegap.ch> (raw)
In-Reply-To: <5195FA83.9010604@imos.net>
References: <5195FA83.9010604@imos.net>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

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

Attachments:

locale-display-fix.diff (text/x-patch, 767B) download # 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 = setlocale (LC_CTYPE); + my $sys_loc = 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 = 1; }
signature.asc (application/pgp-signature, 1.6K) download

view thread (4+ messages)  latest in thread

Message-ID: <51960ADC.3080901@bluegap.ch>
Permalink:  ../51960ADC.3080901@bluegap.ch/
Also on:    postgresql.org/message-id/51960ADC.3080901@bluegap.ch

 ·  · 

reply

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-pkg-debian@postgresql.org
  Cc: markus@bluegap.ch, pk@imos.net
  Subject: Re: Output Bug of pg_createcluster depending the used locale
  In-Reply-To: <51960ADC.3080901@bluegap.ch>
  References: <5195FA83.9010604@imos.net> <51960ADC.3080901@bluegap.ch>

* 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