Ken Takata wrote: > 2016/10/5 Wed 0:09:50 UTC+9 Ken Takata wrote: > > Hi, > > > > After Vim 7.4.1963, running Win32 version of vim.exe on a Cygwin terminal > > (e.g. > > mintty) shows an error message which indicates that the version cannot run > > on > > it. But the encoding of the message is wrong, so the message will not be > > shown > > correctly especially when the message is translated. > > This is because Win32 version of vim.exe will output the message with the > > current codepage (e.g. CP932 on Japanese Windows), but mintty uses the > > locale > > based on the environment variables $LC_ALL, $LC_CTYPE or $LANG (normally > > utf-8). When the vim.exe detects a Cygwin terminal, the encoding should > > follow the environment variables $LC_ALL, etc. > > > > Attached patch fixes the problem. > > > > * Split enc_locale() to two parts. enc_locale() and enc_locale_env(). > > * Call enc_locale_env() and bind_textdomain_codeset() when a Cygwin terminal > > is detected. > > * Also fix some indentation errors with #ifdefs. > > I have updated the patch for the latest source code. > Without this, the message by the patch 7.4.1963 is unreadable when translated, > so a user cannot get any useful information. > > > * Also revert unintended change in iscygpty.c by 7.4.2293. > > This change has been merged as a part of 8.0.1030, so just removed from the > patch.
Thanks. Let's include it now. -- hundred-and-one symptoms of being an internet addict: 202. You're amazed to find out Spam is a food. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
