Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJR8S-002y65-OF for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Dec 2024 05:44:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tJR8Q-00ACk8-5q for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Dec 2024 05:44:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJR8P-00ACjq-TY for pgsql-bugs@lists.postgresql.org; Fri, 06 Dec 2024 05:44:15 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJR8O-001Iix-LK; Fri, 06 Dec 2024 05:44:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B65iAVS2750623; Fri, 6 Dec 2024 00:44:10 -0500 From: Tom Lane To: Tatsuo Ishii cc: koichi.dbms@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18735: Specific multibyte character in psql file path command parameter for Windows In-reply-to: <20241206.142130.1661155698933375612.ishii@postgresql.org> References: <18735-4acdb3998bb9f2b1@postgresql.org> <2572359.1733424649@sss.pgh.pa.us> <20241206.142130.1661155698933375612.ishii@postgresql.org> Comments: In-reply-to Tatsuo Ishii message dated "Fri, 06 Dec 2024 14:21:30 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2750621.1733463850.1@sss.pgh.pa.us> Date: Fri, 06 Dec 2024 00:44:10 -0500 Message-ID: <2750622.1733463850@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tatsuo Ishii writes: >> This might mean that it'd be okay to just skip the backslash-to-slash >> conversion loops altogether if we think the encoding is Shift-JIS. > I suggest to not do so because majority of Shift-JIS users treat 0x5C > as a backslash. They understand that a 0x5C means a backslash in > Shift-JIS files if the files are for programming (source code) or for > the technical documentations and so on. Sure, we can do it that way. I think the hard part is figuring out whether Windows thinks the file names are in Shift-JIS. Do you have any idea about finding that out? regards, tom lane