File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,10 +142,17 @@ impl EmbeddedHindsightSidecar {
142142 }
143143
144144 fn command ( & self ) -> Command {
145- Command :: new ( & self . executable )
145+ let mut command = Command :: new ( & self . executable ) ;
146+ configure_sidecar_process_env ( & mut command) ;
147+ command
146148 }
147149}
148150
151+ fn configure_sidecar_process_env ( command : & mut Command ) {
152+ command. env ( "PYTHONUTF8" , "1" ) ;
153+ command. env ( "PYTHONIOENCODING" , "utf-8" ) ;
154+ }
155+
149156async fn sidecar_install_is_valid ( root : & Path , expected : & SidecarInstallMetadata ) -> bool {
150157 let metadata_path = root. join ( SIDECAR_METADATA_FILE ) ;
151158 let bytes = match tokio:: fs:: read ( & metadata_path) . await {
Original file line number Diff line number Diff line change @@ -683,6 +683,8 @@ fn run_sidecar_command<const N: usize>(
683683 command. env ( "HOME" , home) ;
684684 command. env ( "USERPROFILE" , home) ;
685685 }
686+ command. env ( "PYTHONUTF8" , "1" ) ;
687+ command. env ( "PYTHONIOENCODING" , "utf-8" ) ;
686688 let status = command. status ( ) ?;
687689 if status. success ( ) {
688690 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments