I have my computer set up in Japanese (hey, this is good language practice) and everything is fine and dandy ... except javac. It prints local error messages to the console, but they are in Shift-JIS and not in UTF8:
$ javac this-file-doesnt-exist.java
javac: ?t?@?C??????????܂???: this-file-doesnt-exist.java
?g????: javac <options> <source files>
?g?p?\?ȃI?v?V?????̃??X?g?ɂ??ẮA-help ???g?p???܂
If I pass the output through nkf -w, it reads, but this is not very much to solve:
$ javac this-file-doesnt-exist.java 2>&1 | nkf -w
javac: ファイルが見つかりません: this-file-doesnt-exist.java
使い方: javac <options> <source files>
使用可能なオプションのリストについては、-help を使用します
Everything else works fine (with UTF8) from the command line; I can type in Japanese file names, tab stops, vi can edit UTF-8 files, etc. Although javahe spits out all his messages in English (this is good).
Here are the relevant bits of my environment:
LC_CTYPE=UTF-8
LANG=ja_JP.UTF-8
, javac , java . -Dfile.encoding=utf8, nada, JVM , , Google.
:
Macports OpenJDK6 :
$ /opt/local//share/java/openjdk6_bootstrap/bin/javac this-file-doesnt-exist.java
javac: file not found: this-file-doesnt-exist.java
Usage: javac <options> <source files>
use -help for a list of possible options