all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Herbert Euler" <herberteuler@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Fcall_process: wrong conversion
Date: Tue, 16 May 2006 12:34:30 +0800	[thread overview]
Message-ID: <BAY112-F28627FA81042D1139276A3DAA00@phx.gbl> (raw)
In-Reply-To: <E1FfqtC-0006oD-00@etlken>

>From: Kenichi Handa <handa@m17n.org>
>To: "Herbert Euler" <herberteuler@hotmail.com>
>CC: emacs-devel@gnu.org
>Subject: Re: Fcall_process: wrong conversion
>Date: Tue, 16 May 2006 13:10:30 +0900
>
>I think there's no locale that uses utf-16, and it's
>impossible to support such a locale because most of basic
>libc functions that accept a filename require that it is
>terminated by NULL.

Oh, I see my fault.  At the same time, I see whether a string is
unibyte-string is tested with STRING_MULTIBYTE (line 674 to 676,
lisp.h):

    /* Nonzero if STR is a multibyte string.  */
    #define STRING_MULTIBYTE(STR)  \
      (XSTRING (STR)->size_byte >= 0)

I don't know how `size_byte' is set.  Is it done by scanning a string
and watching the range of each byte (or some bytes) of the string?  If
it is in this case and we assume that no command argument will be in
UTF-16 encode, disabling argument encoding for unibyte-string seems
the best solution.

Regards,
Guanpeng Xu

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

  reply	other threads:[~2006-05-16  4:34 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 [this message]
2006-05-16  4:39             ` Kenichi Handa
2006-05-16  5:40               ` Herbert Euler
2006-05-18  2:24                 ` Kenichi Handa
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY112-F28627FA81042D1139276A3DAA00@phx.gbl \
    --to=herberteuler@hotmail.com \
    --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 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.