LANG=C

Windows用の実行ファイルをMacでも動かすことができるWineというアプリケーション。これを使っている時に、文字コード?フォント?のエラーに悩まされた。LANG=Cで誤摩化して動かしていたが
SVNにコミットする際にいちいち.bash_profileを変更したり、make allの前にLANG=Cを付けたりするのが煩わしくなってきた。

友人のMacBookAirで、同様の手順で環境を整えた際には、この現象は起きなかったので、未だに原因不明なままよく分かっていない。
アプリケーション形式のWineではなく、macportでビルドし直しているので、単純に比較は出来ない?のかもしれない。

.bash_profileの中に、export LANG=Cと設定せずにコンパイルしようとすると下記のようなエラーが出る。

trunk ユーザー名$ make all
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/alarm.c to alarm.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/event.c to event.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/interrupt.c to interrupt.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/osctl.c to osctl.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/resource.c to resource.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/task.c to task.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/kernel/task_manage.c to task_manage.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/config/at91sam7s-gnu/cpu_config.c to cpu_config.o
Compiling /Users/ユーザー名/nxtOSEK/ecrobot/../toppers_osek/config/at91sam7s-gnu/lego_nxt/sys_config.c to sys_config.o
Generating OSEK kernel config files from LineTrace.oil
err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting

Compiling kernel_cfg.c to kernel_cfg.o
arm-none-eabi-gcc: error: kernel_cfg.c: No such file or directory
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
make: *** [build/./kernel_cfg.o] Error 1

次に、

LANG=C make all

を実行すると、コンパイルが通る。

うーん… 言ってる事は何となく分かるものの… 未解決。