Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XVjlX-0007XY-GW for pgsql-bugs@arkaria.postgresql.org; Sun, 21 Sep 2014 16:13:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XVjlW-0001tV-W8 for pgsql-bugs@arkaria.postgresql.org; Sun, 21 Sep 2014 16:13:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XVjlV-0001tO-Uy for pgsql-bugs@postgresql.org; Sun, 21 Sep 2014 16:13:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XVjlP-0002SW-3q for pgsql-bugs@postgresql.org; Sun, 21 Sep 2014 16:13:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8LGDPGE007108; Sun, 21 Sep 2014 12:13:25 -0400 From: Tom Lane To: Noah Misch cc: Alon , pgsql-bugs@postgresql.org Subject: Re: Re: BUG #11431: Failing =?iso-8859-1?Q?to_?= =?iso-8859-1?Q?backup_and_restore_a_Windows_postgres_database=2C_with_Nor?= =?iso-8859-1?Q?wegian_Bokm=E5l?= locale. In-reply-to: <20140921051846.GA1565935@tornado.leadboat.com> References: <20140915230427.2486.29437@wrigleys.postgresql.org> <1411164953375-5819745.post@n5.nabble.com> <20140921051846.GA1565935@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sun, 21 Sep 2014 01:18:46 -0400" Date: Sun, 21 Sep 2014 12:13:25 -0400 Message-ID: <7107.1411316005@sss.pgh.pa.us> X-Pg-Spam-Score: -2.7 (--) 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 Noah Misch writes: > On Fri, Sep 19, 2014 at 03:15:53PM -0700, Alon wrote: >> The pg_dump file contains this command: >> CREATE DATABASE workgroup WITH TEMPLATE = template0 ENCODING = 'UTF8' >> LC_COLLATE = 'Norwegian (Bokmål)_Norway.1252' LC_CTYPE = 'Norwegian >> (Bokmål)_Norway.1252'; > In WIN1252, "e5 6c 29" is "ål)". We're likely failing to set client_encoding > at some essential point in the process. The level of stupidity needed to use non-ASCII characters in a locale name is breathtaking. What were Microsoft thinking? How are we supposed to guess what encoding applies when setting the encoding? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs