emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image file with Chinese file names


From: MJ Chan
Subject: image file with Chinese file names
Date: Sat, 18 Mar 2006 17:07:28 -0500

[ this was originally posted to address@hidden ]

I'm seeing something that I'm not sure is necessary. When I use
create-image with file with chinese name like this, image-size always
return (30 . 30) as its size: (30 is the default size when image
cannot be loaded according to emacs C source code). 

(image-size (create-image image-file-name) t)

if I do this:

(image-size (create-image (encode-coding-string image-file-name 'big5)) t)

It returns correct size. 

I'm wondering if encode-coding-string is necessary here. My
file-name-coding-system is already set to big5.

Please note that in both cases, the image file itself can be displayed
properly. It's just the image-size seems to have problem.

I'm running CVS emacs on Windows XP. 

MJ

---
In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
 of 2006-01-22 on BASE
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.2) --cflags -I../../GnuWin32/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: chinese-big5
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  auto-image-file-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
l o c <tab> a <tab> m i <tab> / o u <tab> <return> 
C-n C-n C-p C-p C-x C-k C-x n C-x n C-n C-n C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-x C-k x <help-echo> 
M-x m s p <tab> <return> g C-n q <help-echo> <help-echo> 
M-x e <backspace> r e p o <tab> <backspace> <backspace> 
<backspace> <backspace> e m a c <tab> r e <tab> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> r e p o <tab> r <backspace> 
o <tab> <backspace> <backspace> o r t - e m <tab> 
<return>

Recent messages:
1 of 1 deletions
1 deletion done
line-move-1: Beginning of buffer [3 times]

No changes need to be saved

Loading mspools-extra...done
Loading vm-pop...done
Making completion list... [2 times]
Loading emacsbug...done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]