Re: BUG #18735: Specific multibyte character in psql file path command parameter for Windows - Mailing list pgsql-bugs

From Koichi Suzuki
Subject Re: BUG #18735: Specific multibyte character in psql file path command parameter for Windows
Date
Msg-id CAAhp3gdpyJ7TQXrHFWY=2ZcEBZi6yDfY_4G=Rdz8mhp=F0-ioA@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18735: Specific multibyte character in psql file path command parameter for Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #18735: Specific multibyte character in psql file path command parameter for Windows
List pgsql-bugs
Hello Here;

My colleagues in EDB kindly built PG 17.2 test installer for WIndows with Tom's patch.   I ran this in my Windows environment and the patch looks to work fine.   Anybody can download this package from https://get.enterprisedb.com/test-installers/postgresql-17.2-0.0snapshot12926810582.1090.1.7c5fded.3-windows-x64.exe for test.

Hope this is helpful.   If possible, I'd like to ask to commit Tom's patch, not only to the latest major but also to older majors.

Regards;
---
Koichi Suzuki
Senior Principal Support Engineer



On Mon, Dec 9, 2024 at 5:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Tatsuo Ishii <ishii@postgresql.org> writes:
>> Another way, given that we only really need this to work for
>> SJIS, is to hard-wire the logic into path.c --- it's not like
>> pg_sjis_mblen is either long or likely to change.  That's
>> ugly but would be a lot less invasive and safer to back-patch.
>> I'm leaning a bit to the second way, mainly because of the
>> extern-relocation annoyance.

> +1. I believe the logic of detecting byte length in Shift-JIS will not
> be changed.

OK.  I know I said I wasn't going to write this, but here's a draft
patch that assumes we need only touch psql and can rely on its idea
of client_encoding.

I'm not in a position to test this.

                        regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Evidence of Ownership Issues During Restoration of Extension Member Objects
Next
From: AKASH
Date:
Subject: Re: Evidence of Ownership Issues During Restoration of Extension Member Objects