Skip to content

Commit 4f233e0

Browse files
committed
fix(postgres): export LC_ALL and LC_CTYPE envs
1 parent 4bfb998 commit 4f233e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

postgres/src/helpers.rs

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ pub fn setup() -> Result<String, Error> {
2424

2525
let pg_data_dir = dag().get_env("PGDATA")?;
2626
let pg_port = dag().get_env("PGPORT")?;
27+
let lc_all = dag().get_env("LC_ALL")?;
28+
let lc_ctype = dag().get_env("LC_CTYPE")?;
2729

2830
if pg_port.is_empty() {
2931
dag().set_envs(vec![("PGPORT".into(), "5432".into())])?;
@@ -33,6 +35,14 @@ pub fn setup() -> Result<String, Error> {
3335
dag().set_envs(vec![("PGDATA".into(), "pg_data".into())])?;
3436
}
3537

38+
if lc_all.is_empty() {
39+
dag().set_envs(vec![("LC_ALL".into(), "en_US.UTF-8".into())])?;
40+
}
41+
42+
if lc_ctype.is_empty() {
43+
dag().set_envs(vec![("LC_CTYPE".into(), "en_US.UTF-8".into())])?;
44+
}
45+
3646
let stdout = dag()
3747
.flox()?
3848
.with_workdir(".fluentci")?

0 commit comments

Comments
 (0)