aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-09-23 18:42:24 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-09-23 18:42:24 +0000
commit2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9 (patch)
tree88417f5fec14aa97d75dba5f712078ad5d5e66bf /main.c
parentcd in subdir (diff)
downloadw3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.tar.gz
w3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.zip
gettextize initial modifications
Diffstat (limited to '')
-rw-r--r--main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1fb935e..7867e7d 100644
--- a/main.c
+++ b/main.c
@@ -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