Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WyzPK-0006mP-A1 for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Jun 2014 08:15:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WyzPJ-00080p-Lk for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Jun 2014 08:15:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WyzPI-00080X-Ui for pgsql-bugs@postgresql.org; Mon, 23 Jun 2014 08:15:16 +0000 Received: from mail231.strasbourg.4js.com ([92.103.31.231]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WyzPF-0006Hi-K8 for pgsql-bugs@postgresql.org; Mon, 23 Jun 2014 08:15:15 +0000 Received: from [10.0.40.29] (orion.strasbourg.4js.com [10.0.40.29]) (authenticated bits=0) by mail231.strasbourg.4js.com (8.14.4/8.14.4/Debian-4) with ESMTP id s5N8F6AO014782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 23 Jun 2014 10:15:06 +0200 Message-ID: <53A7E20A.7060206@4js.com> Date: Mon, 23 Jun 2014 10:15:06 +0200 From: Sebastien FLAESCH Organization: Four Js Development Tools User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Amit Langote , pgsql-bugs@postgresql.org Subject: Re: BUG #10707: UPPER() does not convert non-ASCII chars References: <20140620145538.2634.85619@wrigleys.postgresql.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.97.8 at mail231 X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail231.strasbourg.4js.com [10.10.0.1]); Mon, 23 Jun 2014 10:15:06 +0200 (CEST) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello Amit, Yes I found the problem, in fact I have created my db with: $ createdb test1 -E utf8 Seems that I need to specify the locale explicitly with 9.4: $ createdb test1 -E utf8 -l en_US.utf8 I think I did not use the -l option in 9.3.2 ... Or maybe it defaults to the current LC_* settings in the shell and I used different settings when I created the database with 9.3.2... I wonder... So sorry for reporting this as a bug, it's ok now. Thanks for the answer! Seb On 06/20/2014 05:59 PM, Amit Langote wrote: > On Sat, Jun 21, 2014 at 12:51 AM, Amit Langote wrote: >> On Fri, Jun 20, 2014 at 11:55 PM, wrote: >>> The following bug has been logged on the website: >>> >>> Bug reference: 10707 >>> Logged by: FLAESCH Sebastien >>> Email address: sf@4js.com >>> PostgreSQL version: 9.4beta1 >>> Operating system: Linux Debian (3.14-1-amd64 #1 SMP Debian 3.14.4-1) >>> Description: >>> >>> Created my test1 db with utf8 charset, when using the UPPER() function, only >>> ASCII chars are converted to uppercase. >>> >>> I am missing a configuration option? >>> >>> I have also 9.3.2 installed, and the characters are converted to uppercase. >>> >>> test1=# SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname >>> = 'test1'; >>> pg_encoding_to_char >>> --------------------- >>> UTF8 >>> (1 row) >>> >>> test1=# select upper('âãäåçèéêëô') ; >>> upper >>> ------------ >>> âãäåçèéêëô >>> (1 row) >>> >> >> What locale is your database using? Is it 'C'? >> >> -- >> Amit > > Or what does following say: > > SELECT datctype FROM pg_database WHERE datname = 'test1'; > > -- > Amit > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs