|
From: | Laimonas Vėbra |
Subject: | bug#6546: win32 grep/shell utf-8 encoding |
Date: | Thu, 01 Jul 2010 11:46:37 +0300 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4 |
grep 2.6.3 (cygwin) at last works correctly (coloring multibyte matches) from win32 console (according to LANG environment settings), but no matter how i've tried to push emacs (set-language-environment, coding-system-for-(read|write), set-env in grep-setup-hook), it just don't work, because somewhere inside the Emacs win32 stuff it sticks to windows locale codepage and tries hard to convert to this codepage/encoding before it passes arguments to shell. No wonder -- it fails when it comes to unicode.
How to reproduce:Create utf-8 file with some unicode characters (Cyrillic, Baltic, whatever; not only ascii) and try to grep for some utf-8 strings from Emacs (M-x grep).
[Prev in Thread] | Current Thread | [Next in Thread] |