Skip to content

Commit

Permalink
Merge pull request #791 from zlamalp/ssh
Browse files Browse the repository at this point in the history
fix(sshkeys): support printing wide characters in keys comments
  • Loading branch information
zlamalp authored Jun 8, 2023
2 parents f320078 + 232b464 commit 41b4eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/sshkeys
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ foreach my $memberId ($data->getMemberIdsForFacility()) {

####### output ######################
for my $login (keys %sshKeys) {
open SERVICE_FILE,">$sshkeysDirectory/$login" or die "Cannot open $sshkeysDirectory/$login: $! \n";
open (SERVICE_FILE,">:encoding(UTF-8)","$sshkeysDirectory/$login") or die "Cannot open $sshkeysDirectory/$login: $! \n";
print SERVICE_FILE join "\n", @{$sshKeys{$login}}, "\n" if defined $sshKeys{$login};
close SERVICE_FILE;
}
Expand Down

0 comments on commit 41b4eac

Please sign in to comment.