threads / patch / 14700

patchCompile all Java sources in jgit as UTF-8

Subject: [JGIT PATCH 1/1] Compile all Java sources in jgit as UTF-8

## tl;dr

One message between Jul 27, 2008 and Jul 27, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Shawn O. Pearce· Jul 27, 2008, 04:11 UTC · lore

We use a UTF-8 encoding in our source files whenever possible. If the compiler assumes ASCII we sometimes get warnings parsing copyright information for authors whose names aren't representable in US-ASCII.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 make_jgit.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Show changes to make_jgit.sh +1 −0
diff --git a/make_jgit.sh b/make_jgit.sh
index 89df80c..13d0e32 100755
--- a/make_jgit.sh
+++ b/make_jgit.sh
@@ -58,6 +58,7 @@ do
 	 xargs javac \
 		-source 1.5 \
 		-target 1.5 \
+		-encoding UTF-8 \
 		-g \
 		-d ../bin2) || die "Building $p failed."
 	CLASSPATH="$CLASSPATH:$R/$p/bin2"
-- 
1.6.0.rc0.182.gb96c7

← back to recent threads