Skip to content

Commit

Permalink
mxqi: Forward $LC_CTYPE to remote session
Browse files Browse the repository at this point in the history
Forward the environment variable LC_CTYPE (typically "en_US.UTF-8" in
our environment) to the remote session.
  • Loading branch information
donald committed Apr 30, 2025
1 parent 49ff977 commit e5bd941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mxqi/mxqi
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ sub server {
TMPDIR MXQ_JOBTMPDIR CUDA_VISIBLE_DEVICES
));
print $out "SetEnv $s\n" if $s;
print $out "AcceptEnv MXQI_SUBMIT_WD\n";
print $out "AcceptEnv MXQI_SUBMIT_WD LC_CTYPE\n";
print $out "X11Forwarding yes\n";
print $out "AddressFamily inet\n";
print $out "HostKey $tmpdir/ssh_host_ed25519_key\n";
Expand Down Expand Up @@ -362,6 +362,7 @@ _EOF_
'-p', $data->{'port'},
'-o', "StrictHostKeyChecking yes",
'-o', "KnownHostsCommand /usr/bin/echo $hostkeyline",
'-o', 'SendEnv LC_CTYPE',
exists $ENV{'PWD'} ? ( '-o', "SetEnv MXQI_SUBMIT_WD=\"$ENV{'PWD'}\"" ) : (),
$data->{'hostname'};
die ("exec ssh: $!\n");
Expand Down

0 comments on commit e5bd941

Please sign in to comment.