Skip to content

Commit 9472381

Browse files
committed
fix: perl warning about locale
1 parent 351f7a7 commit 9472381

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nix/commands/devshell.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ rec {
137137
then ""
138138
else processHelp help
139139
}
140-
${lib.getExe pkgs.perl} ${./scripts/formatCommand.pl} '${toString nameWidth}' '${helpWidth}' '${helpHeight}' '${name}' "''$${highlyUnlikelyName}"'';
140+
${lib.getExe pkgs.perl} ${./scripts/formatCommand.pl} '${toString nameWidth}' '${helpWidth}' '${helpHeight}' '${name}' "''$${highlyUnlikelyName}"
141+
'';
141142
in
142143
command;
143144
commandsColumns = lib.concatMapStringsSep "\n" opCmd cmd;
@@ -148,5 +149,10 @@ rec {
148149
${commandsColumns}
149150
'';
150151
in
151-
lib.concatStringsSep "\n" (map opCat commandByCategoriesSorted) + "\n";
152+
''
153+
{
154+
export LC_ALL="C"
155+
${lib.concatStringsSep "\n" (map opCat commandByCategoriesSorted) + "\n"}
156+
}
157+
'';
152158
}

0 commit comments

Comments
 (0)