Skip to content

Commit

Permalink
Merge pull request #629 from ged/fix-628
Browse files Browse the repository at this point in the history
Use a connection encoding compatible to "Möhre"
  • Loading branch information
larskanis authored Feb 28, 2025
2 parents 378b7a3 + dd138ec commit 62508cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/pg/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@ def wait_check_socket(conn)

it "uses the previous string encoding for escaped string" do
original = "Möhre to 'scape".encode( "iso-8859-1" )
@conn.set_client_encoding( "euc_jp" )
@conn.set_client_encoding( "iso-8859-2" )
escaped = described_class.escape( original )
expect( escaped.encoding ).to eq( Encoding::ISO8859_1 )
expect( escaped ).to eq( "Möhre to ''scape".encode(Encoding::ISO8859_1) )
Expand Down

0 comments on commit 62508cc

Please sign in to comment.