Windows locale cause server to send invalid data encoding to client - Mailing list pgsql-bugs

From Antoine
Subject Windows locale cause server to send invalid data encoding to client
Date
Msg-id CAO16vDNM5_eUZG3unbumx2AJt11VZxuQxn9cSZ9VhSCpD1TMgw@mail.gmail.com
Whole thread Raw
Responses Re: Windows locale cause server to send invalid data encoding to client  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-bugs
I set up a postgresql server on Windows 10 and connected it using Rust, but the Rust client reports invalid UTF-8 data when the password is wrong. I use a french locale windows that contain some accents "éèê" etc.

Windows use WTF-16 but the Rust client asks UTF-8 to the serveur so we think it's a bug from the server to not send UTF-8 even if Windows doesn't use it for its locale translation.

Details can be found at this github issue #803. Here a recorded wireshark of the problem  output.pcapng.gz.

The version is: `psql (PostgreSQL) 13.3`

I never used a mailing list so I'm not used to it.

--
La Terre est le berceau de l'humanité mais qui voudrait passer sa vie dans un berceau.

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #17104: memory leak
Next
From: Julien Rouhaud
Date:
Subject: Re: Windows locale cause server to send invalid data encoding to client