Skip to content

Commit

Permalink
Use the root Locale for string conversion of command line options in
Browse files Browse the repository at this point in the history
org.apache.commons.compress.archivers.sevenz.CLI
  • Loading branch information
garydgregory committed Oct 29, 2023
1 parent d4be12a commit b8c8fda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">Private class ZipFile.BoundedFileChannelInputStream should be a static inner class.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Refactor internal SevenZ AES256SHA256Decoder InputStream into a named static inner class.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Refactor internal SevenZ AES256SHA256Decoder OutputStream into a named static inner class.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Use the root Locale for string conversion of command line options in org.apache.commons.compress.archivers.sevenz.CLI.</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">Bump org.slf4j:slf4j-api from 2.0.8 to 2.0.9 #413.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-io:commons-io from 2.13.0 to 2.15.0.</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.io.File;
import java.io.IOException;
import java.util.Locale;

/**
* Usage: archive-name [list]
Expand Down Expand Up @@ -80,7 +81,7 @@ private static Mode grabMode(final String[] args) {
if (args.length < 2) {
return Mode.LIST;
}
return Enum.valueOf(Mode.class, args[1].toUpperCase());
return Enum.valueOf(Mode.class, args[1].toUpperCase(Locale.ROOT));
}

public static void main(final String[] args) throws Exception {
Expand Down

0 comments on commit b8c8fda

Please sign in to comment.