From: "Laimonas Vėbra" <laimonas.vebra@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 6705@debbugs.gnu.org
Subject: bug#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion)
Date: Sat, 24 Jul 2010 00:53:41 +0300 [thread overview]
Message-ID: <4C4A0F65.9040301@gmail.com> (raw)
In-Reply-To: <83fwz9ubzo.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
Eli Zaretskii wrote:
> Only if that encoding matches the current user's codepage.
No. NO. *NO*. Try. I already showed how and i can repeat it AGAIN:
#include <stdio.h>
int main (int argc, char ** argv) {
printf("argv[1]: %s\n", argv[1]);
return 0;
}
gcc.EXE (GCC) 3.4.5 (mingw-vista special r3)
gcc -o test test.c
emacs -Q
M-x eval-expression
(setq coding-system-for-write 'utf-8)
M-x grep
test.exe "Šešios žąsys su šešiais žąsyčiais" >> out.txt
M-x eval-expression
(setq coding-system-for-write 'cp1257)
M-x grep
test.exe "Šešios žąsys su šešiais žąsyčiais" >> out.txt
M-x eval-expression
(setq coding-system-for-write 'utf-8)
M-x grep
test.exe "С новым годом Ели Заретски!" >> out.txt
M-x eval-expression
(setq coding-system-for-write 'cp1251)
M-x grep
test.exe "С новым годом Ели Заретски!" >> out.txt
M-x eval-expression
(setq coding-system-for-write 'utf-8)
M-x grep
test.exe "Χρήση εθνικών και ειδικών χαρακτήρων" >> out.txt
M-x eval-expression
(setq coding-system-for-write 'iso-8859-7)
M-x grep
test.exe "Χρήση εθνικών και ειδικών χαρακτήρων" >> out.txt
File 'out.txt' attached.
[-- Attachment #2: out.txt --]
[-- Type: text/plain, Size: 321 bytes --]
argv[1]: Å eÅ¡ios žÄ
sys su Å¡eÅ¡iais žÄ
syÄiais
argv[1]: Ðeðios þàsys su ðeðiais þàsyèiais
argv[1]: С новÑм годом Ðли ÐаÑеÑÑки!
argv[1]: Ñ íîâûì ãîäîì Åëè Çàðåòñêè!
argv[1]: ΧÏήÏη εθνικÏν και ειδικÏν ÏαÏακÏήÏÏν
argv[1]: ×ñÞóç åèíéêþí êáé åéäéêþí ÷áñáêôÞñùí
next prev parent reply other threads:[~2010-07-23 21:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 12:31 bug#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion) Laimonas Vėbra
2010-07-22 14:33 ` Jason Rumney
2010-07-22 18:14 ` bug#6546: " Laimonas Vėbra
2010-07-22 19:50 ` Eli Zaretskii
2010-07-22 20:59 ` Laimonas Vėbra
2010-07-23 10:21 ` Eli Zaretskii
2010-07-23 12:57 ` Laimonas Vėbra
2010-07-23 14:35 ` Eli Zaretskii
2010-07-23 15:35 ` Laimonas Vėbra
2010-07-23 18:06 ` Eli Zaretskii
2010-07-23 18:53 ` Laimonas Vėbra
2010-07-23 21:25 ` Eli Zaretskii
2010-07-23 21:53 ` Laimonas Vėbra [this message]
2010-07-24 20:33 ` Eli Zaretskii
2010-07-25 10:10 ` Laimonas Vėbra
2010-07-23 19:07 ` Juanma Barranquero
2010-07-23 19:51 ` Laimonas Vėbra
2010-07-23 19:59 ` Juanma Barranquero
2010-07-22 22:56 ` Juanma Barranquero
2010-07-23 10:26 ` Eli Zaretskii
2010-07-23 10:45 ` Juanma Barranquero
2010-07-23 14:16 ` Eli Zaretskii
2010-07-25 23:38 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C4A0F65.9040301@gmail.com \
--to=laimonas.vebra@gmail.com \
--cc=6705@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 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).