GNU bug report logs - #6705
w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion)

Previous Next

Package: emacs;

Reported by: Laimonas Vėbra <laimonas.vebra <at> gmail.com>

Date: Thu, 22 Jul 2010 12:32:01 UTC

Severity: normal

Tags: moreinfo

Merged with 6546

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #61 received at 6705 <at> debbugs.gnu.org (full text, mbox):

From: Laimonas Vėbra <laimonas.vebra <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 6705 <at> debbugs.gnu.org
Subject: Re: 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
[Message part 1 (text/plain, inline)]
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.

[out.txt (text/plain, attachment)]

This bug report was last modified 3 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.