pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Running Windows binaries from non-English folder
Date: Wed, 8 Nov 2017 07:56:29 +0100
Message-ID: <otu9qm$5ph$1@blaine.gmane.org> (raw)
In-Reply-To: <CAGtJ-1SKMqFR2V7bJHccLwZCVmh0cyHUVT2ZJJSy_t+5x3EHpA@mail.gmail.com>
References: <CAGtJ-1SKMqFR2V7bJHccLwZCVmh0cyHUVT2ZJJSy_t+5x3EHpA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Yuri Martsinovsky schrieb am 07.11.2017 um 20:30:
> I put PostgreSQL binary files in Windows in a folder with Russian name, for example:
> C:\Постгрес
> 
> When I run pg_ctl.exe from the Command Prompt from this current directory I get the following error:
> could not find a "pg_ctl.exe" to execute
> 
> pg_ctl.exe file is actually there and it runs, but just prints the above error to the console.
> 
> If I run 
> "C:\Постгрес\pg_ctl.exe"
> I get this error:
> invalid binary: "C:\????????\pg_ctl.exe"
> 
> The same happens when running initdb.exe
> Looks like the utility just cannot access its own file because of the russian characters.
> 
> The OS is Windows 10
> I tried running "chcp 65001" in the console window to set UTF-8 encoding for the console.
> 
> Similar errors happen if I put the binaries in English folder, but try to run initdb for a non-english data folder
> 
> Does PostgreSQL for Windows support directories in UTF-8 or other encoding? 

I have encountered that as well even with plain ASCII names, but with spaces in it.

Try

"C:\Постгрес\"pg_ctl.exe

(That is: only quote the path, not the actual executable)

I think this happens if you start pg_ctl using an administrator account. 
pg_ctl drops the privileges then and restarts itself (or something like that) but it fails to extract the filename correctly if everything is quoted.

Thomas



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <otu9qm$5ph$1@blaine.gmane.org>
Permalink:  ../otu9qm$5ph$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/otu9qm$5ph$1@blaine.gmane.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Running Windows binaries from non-English folder
  In-Reply-To: <otu9qm$5ph$1@blaine.gmane.org>

* 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