Permalink
Browse files

* emacs/uim-el-agent.c (main) : Set locale.

* emacs/im.c (output_default_im_engine) : Use LC_CTYPE.
* emacs/context.c (create_uim_agent_context) : Ditto.
  • Loading branch information...
1 parent c4b85f8 commit 9a55ea310521c8718e0bec12bab30ebd4b74619a ek.kato committed Feb 14, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 emacs/context.c
  2. +1 −1 emacs/im.c
  3. +2 −0 emacs/uim-el-agent.c
View
@@ -230,7 +230,7 @@ create_uim_agent_context(const char *encoding)
ret->context = create_context(ret->encoding, ret);
- if ((im = uim_get_default_im_name(setlocale(LC_ALL, NULL))))
+ if ((im = uim_get_default_im_name(setlocale(LC_CTYPE, NULL))))
ret->im = uim_strdup(im);
else
ret->im = NULL;
View
@@ -58,7 +58,7 @@ output_default_im_engine(void)
a_printf(" ( d \"%s\" ) ", default_engine_name);
else
a_printf(" ( d \"%s\" ) ",
- uim_get_default_im_name(setlocale(LC_ALL, NULL)));
+ uim_get_default_im_name(setlocale(LC_CTYPE, NULL)));
}
@@ -630,6 +630,8 @@ main(int argc, char *argv[])
{
int opt;
+ setlocale(LC_CTYPE, "");
+
while ((opt = getopt(argc, argv, "d")) != -1) {
switch (opt) {
case 'd':

0 comments on commit 9a55ea3

Please sign in to comment.