From: Eli Zaretskii <eliz@gnu.org>
To: "Laimonas Vėbra" <laimonas.vebra@gmail.com>
Cc: 6705@debbugs.gnu.org
Subject: bug#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion)
Date: Thu, 22 Jul 2010 22:50:21 +0300 [thread overview]
Message-ID: <83lj93cn42.fsf@gnu.org> (raw)
In-Reply-To: <4C483A30.9010804@gmail.com>
> Date: Thu, 22 Jul 2010 15:31:44 +0300
> From: Laimonas Vėbra <laimonas.vebra@gmail.com>
> Cc:
>
> Below is a comment that i wrote for myself in the cmpdproxy.c (it
> explains the problem). I have a half (i suppose -- portable enough) of
> working solution/fix for it using MultiByteToWideChar API function, but
> i won't send a (partly working) patch, unless someone from the
> developers who agree with the problem and intend to fix it will ask for it.
Sorry, I cannot understand your comments. You talk about corrupted
conversion, but never add any detailed explanations, just examples.
Could you please elaborate?
The only thing I understand is that conversion of Unicode characters
to a Windows codepage that doesn't support those characters will be
lossy. That part is clear, but:
. did you try setting up your Windows to use the UTF-8 codepage
65001?
. since Cygwin 1.7 switched to using UTF-8, it parted itself even
further from native Windows applications, so you now have one more
reason to use the Cygwin build of Emacs instead of the native one
> Besides, the patch itself is larger than 10 diff lines and it uses
> (duplicates by copying) some helper functions/declarations
> (open_input_file(), close_file_data(), rva_to_section(),
> w32_executable_type, RVA_TO_PTR) from unexw32.c, so it may need some
> code refactoring.
This means we will be unable to accept the patches, even if we agree
to them, without you signing legal papers assigning copyright to the
FSF.
> how do one can/should (clearly) pass utf-8 arguments to an external
> (cygwin) app on windows? I suppose, now it's not possible.
The Windows build of Emacs doesn't yet use the UTF-16 APIs. Doing
that is a large job; volunteers are welcome, of course. However,
passing UTF-8 arguments to subprocesses is hardly the first or the
most important thing that should be done in that regard, IMO. File
access is much more important, this being an editor.
next prev parent reply other threads:[~2010-07-22 19:50 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lj93cn42.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=6705@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.