diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-23 18:42:24 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-23 18:42:24 +0000 |
commit | 2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9 (patch) | |
tree | 88417f5fec14aa97d75dba5f712078ad5d5e66bf /main.c | |
parent | cd in subdir (diff) | |
download | w3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.tar.gz w3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.zip |
gettextize initial modifications
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.231 2003/09/22 21:02:19 ukai Exp $ */ +/* $Id: main.c,v 1.232 2003/09/23 18:42:25 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -382,6 +382,9 @@ main(int argc, char **argv, char **envp) wc_ces CodePage; #endif #endif + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); #ifndef HAVE_SYS_ERRLIST prepare_sys_errlist(); @@ -4149,6 +4152,12 @@ adBmark(void) ptr, #ifdef USE_M17N #if LANG == JA + /* FIXME: why WC_CES_EUC_JP hardcoded? + * It should be SystemCharset, that is, we don't + * need if LANG==JA here. + * For example, Cygwin environment, it should be + * WC_CES_SHIFT_JIS, shouldn't it? - ukai + */ (Str_form_quote(wc_conv_strict(Currentbuf->buffername, InnerCharset, WC_CES_EUC_JP)))->ptr); #else |