From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stöcker Bernhard - aktivweb GmbH <bernhard(dot)stoecker(at)aktivweb(dot)de> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: bug report: initdb failure on Microsoft Windows if path to initdb contains special chars |
Date: | 2025-02-04 15:55:48 |
Message-ID: | 642665.1738684548@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
=?utf-8?B?U3TDtmNrZXIgQmVybmhhcmQgLSBha3RpdndlYiBHbWJI?= <bernhard(dot)stoecker(at)aktivweb(dot)de> writes:
> I’d like to report an issue concerning initdb on Microsoft Windows if running initdb.exe from a directory that contains special chars like German umlauts. The error message is: FATAL: invalid byte sequence for encoding "UTF8": 0xf6 0x63 0x6b
The directory name contains those, you mean?
Our position on this is that the data directory's path name has to be
valid in the encoding you are selecting for the database. Otherwise
it's just too much of a mess to deal with inside-the-database values
like the data_directory setting. It looks like you are using some
single-byte encoding (probably a Windows code page?) for your
filesystem names, so you should do the same for initdb's -E option.
Or switch to an all-ASCII path name.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2025-02-05 00:14:56 | BUG #18794: pgBouncer Windows installation error due to a simple sql bug??? |
Previous Message | Tom Lane | 2025-02-04 15:49:49 | Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query |