Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UTF-8 encoding during compilation #186

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-jar.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
if git submodule status | grep \( > /dev/null ; then
mkdir -p build
find src -name "*.java" | xargs javac -d build
find src -name "*.java" | xargs javac -encoding utf-8 -d build
if [[ "$OSTYPE" == "darwin"* ]]; then
find src -type f -not -name "*.java" -exec rsync -R {} build \;
else
Expand Down
8 changes: 6 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
javac -cp rars.jar test/Test.java
java -cp test:rars.jar Test
javac -encoding utf-8 -cp rars.jar test/Test.java
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
java -Dfile.encoding=UTF8 -cp "test;rars.jar" Test
else
java -Dfile.encoding=UTF8 -cp test:rars.jar Test
fi
rm test/Test.class