Skip to content

Commit 373c372

Browse files
committed
chore: update windows to use UTF8 to align with other operating systems and utilize capabilities of the newer releases from https://github.com/theseus-rs/postgresql-binaries
1 parent e3d7046 commit 373c372

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

postgresql_embedded/src/postgresql.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,13 @@ impl PostgreSQL {
228228
self.settings.data_dir.to_string_lossy()
229229
);
230230

231-
let encoding = if cfg!(target_os = "windows") {
232-
"SQL_ASCII"
233-
} else {
234-
"UTF8"
235-
};
236-
237231
let initdb = InitDbBuilder::new()
238232
.program_dir(self.settings.binary_dir())
239233
.pgdata(&self.settings.data_dir)
240234
.auth("password")
241235
.pwfile(&self.settings.password_file)
242236
.username(&self.settings.username)
243-
.encoding(encoding);
237+
.encoding("UTF8");
244238

245239
self.status = Status::Initializing;
246240
match self.execute_command(initdb).await {

0 commit comments

Comments
 (0)