aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
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