Skip to content

Commit

Permalink
Fix minimize_jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jan 16, 2025
1 parent 9e1dd29 commit 0ae309a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/minimize_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
{ echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
# --- end runfiles.bash initialization v3 ---

# Force a UTF-8 compatible locale for Java tools to operate under paths with
# Unicode characters.
if [[ $(locale charmap) != "UTF-8" ]]; then
export LC_CTYPE=C.UTF-8
fi
if [[ $(locale charmap) != "UTF-8" ]]; then
export LC_CTYPE=en_US.UTF-8
fi

if [ "$1" == "--allmodules" ]; then
shift
modules="ALL-MODULE-PATH"
Expand Down

0 comments on commit 0ae309a

Please sign in to comment.