Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCKHz-0005Js-DB for pgsql-admin@arkaria.postgresql.org; Wed, 08 Nov 2017 06:56:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCKHy-0004WX-RN for pgsql-admin@arkaria.postgresql.org; Wed, 08 Nov 2017 06:56:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eCKHy-0004WN-9M for pgsql-admin@postgresql.org; Wed, 08 Nov 2017 06:56:42 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eCKHv-0000FX-LZ for pgsql-admin@postgresql.org; Wed, 08 Nov 2017 06:56:41 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eCKHk-0001n6-MG for pgsql-admin@postgresql.org; Wed, 08 Nov 2017 07:56:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Running Windows binaries from non-English folder Date: Wed, 8 Nov 2017 07:56:29 +0100 Lines: 36 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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