unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6546: win32 grep/shell utf-8 encoding
@ 2010-07-01  8:46 Laimonas Vėbra
  2010-07-01 17:26 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Laimonas Vėbra @ 2010-07-01  8:46 UTC (permalink / raw)
  To: 6546

Maybe it's actually not the bug (but missing functionality), but how do 
one should/could setup ones emacs && .emacs to grep files in utf-8 
encoding?

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).





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-04-24 13:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01  8:46 bug#6546: win32 grep/shell utf-8 encoding Laimonas Vėbra
2010-07-01 17:26 ` Eli Zaretskii
2010-07-01 18:05   ` Laimonas Vėbra
2010-07-22 12:50 ` Juanma Barranquero
2010-07-22 14:11   ` Laimonas Vėbra
2010-07-22 15:02     ` Juanma Barranquero
2010-07-22 18:24       ` Laimonas Vėbra
2010-07-22 19:53         ` Eli Zaretskii
2010-07-22 21:48           ` Laimonas Vėbra
2010-07-22 23:00             ` Juanma Barranquero
2010-07-23 10:24             ` Eli Zaretskii
2010-07-23 12:54               ` Laimonas Vėbra
2010-07-23 14:23                 ` Eli Zaretskii
2010-07-23 15:50                   ` Laimonas Vėbra
2010-07-23 18:09                     ` Eli Zaretskii
2010-07-23 19:07                       ` Laimonas Vėbra
2022-04-24 12:01 ` bug#6546: bug#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion) Lars Ingebrigtsen
2022-04-24 12:31   ` Eli Zaretskii
2022-04-24 13:25     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).