Skip site navigation (1) Skip section navigation (2)

Re: More Code Page wierdness

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: More Code Page wierdness
Date: 2005-01-11 10:20:08
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE47656A@algol.sollentuna.se (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
> > > These are definitely not Windows Installer problems because it is 
> > > perfectly valid action to change the Language of a 
> server, at least 
> > > in Europe. The server should work, no matter what any installer 
> > > did/does....just the same as the server knows not to start if the 
> > > installer incorrectly set up the rights of the instance owning 
> > > userid.
> > 
> > Definitly. The issue appears to be that you have an invalid 
> encoding 
> > in the config file. How exaclty did you get there - did the 
> installer 
> > edit it into the wrong encoding, or did you edit it manually? Using 
> > what editor?
> 
> Looks like Windows Server 2003 was setup with "English - 
> United States", then PostgreSQL was installed using "English 
> -UK", and the system was being edited with a UK keyboard 
> (which shows things like British pound, hash and star all in 
> their correct (!) place ...i.e. different to US).

My question remains - was the '*' put there by the installer, or
manually using notepad (or whatever) later? (The checkbox in the
installer to modify it)

I wonder if a partial solution to this would be to set the codepage
before we load the config file? IIRC, the config file is loaded in
whatever codepage happens to be active when the server starts. The code
page is later changed when loading pg_control (LC_CTYPE should affect
it). That's how I think it works without specifically looking at the
code.

Then we could document which codepage should always be used to edit it.
It's not a beautiful solutino, but it would at least make the behaviour
predictable.

Not sure what would be involved in requiring the file to be UTF8.
Notepad can certainly handle UTF8, but I wonder how much would need to
bec hanged in pg...

//Magnus

Responses

pgsql-hackers-win32 by date

Next:From: Simon RiggsDate: 2005-01-11 11:34:40
Subject: Re: More Code Page wierdness
Previous:From: Simon RiggsDate: 2005-01-11 10:11:13
Subject: Re: More Code Page wierdness

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group