unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Fcall_process: wrong conversion
Date: Thu, 18 May 2006 11:24:55 +0900	[thread overview]
Message-ID: <E1FgYC7-0004TW-00@etlken> (raw)
In-Reply-To: <BAY112-F3293F5E8A45FB2A7EA1BC3DAA00@phx.gbl> (herberteuler@hotmail.com)

In article <BAY112-F3293F5E8A45FB2A7EA1BC3DAA00@phx.gbl>, "Herbert Euler" <herberteuler@hotmail.com> writes:

> What is encoding arguments for?

To give them to a program/process in an encoding the program
requests.

> For unifying character encodings?

I don't understand the meaning of "unifying character
encodings".

> I.e. if the file is in japanese-shift-jis, but command argument is in
> chinese-gbk, encoding arguments will make sure all characters are in
> japanese-shift-jis, won't it?

I don't understand what "if ..." part actually means.  Who
makes command argument in chinese-gbk?

> As you stated, there is no locale uses utf-16, so if utf-16 characters
> appear as command arguments, we can't expect most programs will have
> correct behaviors or at least the same behaviors as no utf-16
> characters appear as command arguments, even if the commands are
> invoked within, for instance, shell scripts.

> So perhaps we should only prevent encoding arguments for utf-16?

It seems to be a good workaround for the hexl-mode because
it won't break anything.  So, I installed a proper change
for that.

Though, it doesn't solve the generic problem of "how to
handle the case that the program requests different encoding
for arguments and file (or stdin)".  I think we should solve
it after the release.

---
Kenichi Handa
handa@m17n.org

  reply	other threads:[~2006-05-18  2:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15  6:09 Fcall_process: wrong conversion Herbert Euler
2006-05-15 14:25 ` Stefan Monnier
2006-05-15 15:17   ` Herbert Euler
2006-05-15 16:06     ` Stefan Monnier
2006-05-16  2:59       ` Herbert Euler
2006-05-16  4:10         ` Kenichi Handa
2006-05-16  4:34           ` Herbert Euler
2006-05-16  4:39             ` Kenichi Handa
2006-05-16  5:40               ` Herbert Euler
2006-05-18  2:24                 ` Kenichi Handa [this message]
2006-05-18  6:07                   ` Herbert Euler
2006-05-18  6:14                     ` Herbert Euler
2006-05-18  6:26                     ` Kenichi Handa
2006-05-18  6:40                       ` Herbert Euler
2006-05-19  3:01                   ` Herbert Euler
2006-05-18 17:35           ` Stefan Monnier
2006-05-19  2:49             ` Herbert Euler
2006-05-19 10:41               ` Eli Zaretskii

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=E1FgYC7-0004TW-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@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).