Loading ...
Sorry, an error occurred while loading the content.
 

Re: locale jp is not language ja

Expand Messages
  • Bram Moolenaar
    ... Why do you set $LANG to jp ? The full name of the locale would be ja_JP.SJIS. I have not seen it start with jp . This is the same issue as with
    Message 1 of 2 , Aug 28, 2001
      Yasuhiro Matsumoto wrote:

      > if set $LANG to "jp", gettext don't work for ja
      >
      > *** option.c.org Tue Aug 28 00:27:20 2001
      > --- option.c Tue Aug 28 10:13:57 2001
      > ***************
      > *** 2592,2597 ****
      > --- 2592,2599 ----
      > /* TODO: is this right? */
      > if (STRNICMP(buf, "zht", 3) == 0)
      > STRCPY(buf, "zh_TW");
      > + else if (STRNICMP(buf, "jp", 2) == 0)
      > + STRCPY(buf, "ja");
      > else
      > buf[2] = NUL; /* truncate to two-letter code */
      > vim_setenv("LANG", buf);

      Why do you set $LANG to "jp"? The full name of the locale would be
      ja_JP.SJIS. I have not seen it start with "jp". This is the same issue
      as with gvimext.

      --
      % cat /usr/include/sys/errno.h
      #define EPERM 1 /* Operation not permitted */
      #define ENOENT 2 /* No such file or directory */
      #define ESRCH 3 /* No such process */
      [...]
      #define EMACS 666 /* Too many macros */
      %

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.