From: Eli Zaretskii <eliz@gnu.org>
To: "Laimonas Vėbra" <laimonas.vebra@gmail.com>
Cc: 6546@debbugs.gnu.org
Subject: bug#6546: win32 grep/shell utf-8 encoding
Date: Fri, 23 Jul 2010 13:24:02 +0300 [thread overview]
Message-ID: <83zkxits1p.fsf@gnu.org> (raw)
In-Reply-To: <4C48BCAC.6040101@gmail.com>
> Date: Fri, 23 Jul 2010 00:48:28 +0300
> From: Laimonas Vėbra <laimonas.vebra@gmail.com>
> CC: 6546@debbugs.gnu.org
>
> > Did you try to add a suitably-valued LANG variable to
> > process-environment? That would at least force Cygwin executables to
> > work in the Windows codepage.
>
> The only way it works is when i set LANG process-environment variable to
> the current windows locale codepage and 'coding-system-for-write' to the
> encoding/charset in which i'd like to grep.
That's the only way it's _supposed_ to work.
> That way it works, but i'm not sure (seriously doubt) if LANG/locale
> codepage, which differs from the actual args encoding, won't result in
> any ugly problems/bugs (e.g. sorting, piping to other apps)
You should set LANG to the current codepage and make sure
locale-coding-system is set to the same codepage. Then the Cygwin
programs invoked as Emacs subprocesses should do what you expect.
> If it really won't and this setup is "as it should be, intended", then
> this bug could be closed.
Yes, this is the only setup that is supposed to work.
next prev parent reply other threads:[~2010-07-23 10:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zkxits1p.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=6546@debbugs.gnu.org \
--cc=laimonas.vebra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.