all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: mjchan@myrealbox.com, emacs-devel@gnu.org
Subject: Re: image file with Chinese file names
Date: Thu, 30 Mar 2006 22:10:51 -0500	[thread overview]
Message-ID: <E1FPA2F-0001vR-23@fencepost.gnu.org> (raw)
In-Reply-To: <E1FOPNk-0002pb-00@etlken> (message from Kenichi Handa on Wed, 29 Mar 2006 10:21:56 +0900)

    I found that image.c (and image.el) doesn't pay attention to
    filename encoding.  For instance, when I visit a file
    "À.png", Emacs crashes in png_load() as this:

    Program received signal SIGSEGV, Segmentation fault.
    0x40346777 in fclose () from /lib/libc.so.6
    (gdb) bt 10

    As an image file name is passed from function to function, I
    don't understand where we should put the interface between
    decoded filename and encoded filename.

I looked at image.c, and I think the right place for encoding is the
end of x_find_image_file.  That is, it should return an encoded name.
That appears correct for all calls to that function, though I could
not perfectly understand all of the callers.

Please try that.  (Please update the comments on x_find_image_file
to say its value has been encoded.)

  reply	other threads:[~2006-03-31  3:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1FKja3-0001Jl-Ow@lists.gnu.org>
2006-03-29  1:21 ` image file with Chinese file names Kenichi Handa
2006-03-31  3:10   ` Richard Stallman [this message]
2006-04-03  1:26     ` Kenichi Handa

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=E1FPA2F-0001vR-23@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mjchan@myrealbox.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.