all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#2416: 23.0.60; decode-coding-region
@ 2009-02-21 17:21 Chong Yidong
  0 siblings, 0 replies; 12+ messages in thread
From: Chong Yidong @ 2009-02-21 17:21 UTC (permalink / raw)
  To: mj; +Cc: 2416

Could you try to narrow down the bug, so that it can be reproduced?  One
way would be to copy out buffer contents before decoding into a separate
buffer, and see if decode-coding-region misbehaves when applied manually
to that bufer.






^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#2416: 23.0.60; decode-coding-region
@ 2009-02-20 21:13 mj
  2009-02-21  9:16 ` Eli Zaretskii
  2009-02-22  2:47 ` Juanma Barranquero
  0 siblings, 2 replies; 12+ messages in thread
From: mj @ 2009-02-20 21:13 UTC (permalink / raw)
  To: emacs-pretest-bug

I have been having this problem since I switched to Emacs 23 several
weeks ago. I'm using VM to read my mails. There seems to be a problem
in decode-coding-region when VM tries to decode a string. When VM
tries to decode a region or a string, it uses a temporary buffer and
basically runs the following lisp code:

(apply 'decode-coding-region (point-min) (point-max)  'us-ascii nil)

The original buffer  content would be something like this:

B7040400-12
some text here

after decode-coding-region is executed, the buffer content became:

^@7040450-12
some text here

Where ^@ is actually binary code \0 (not ascii ^ and @). There is another instance
that a string was decoded and the result is  ^@ prefixed. 

I could not reproduce this with "Emacs -Q". But it always happens when
thsoe particular messages were processed by VM. 

Strangely enough, if I inserted a few spaces at the beginning of
buffer: (one space in the following buffer)

 B7040400-12
some text here

And, the decoding was done correctly. In another instance mentioned
above, one space is not enough. I had to put several spaces to get the
decoding working. 

I saw another bug report just yesterday regarding decode-coding-region
crashing. I applied the patch, but it did not help in the
decoding. 

Please let me know if you need other information to help understand
the problem. Thanks. 

-----
Emacs version: "GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-29 on T42"

Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --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
  value of $XMODIFIERS: nil
  locale-coding-system: chinese-big5
  default-enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  auto-image-file-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t







^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-02-23  2:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 17:21 bug#2416: 23.0.60; decode-coding-region Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-02-20 21:13 mj
2009-02-21  9:16 ` Eli Zaretskii
2009-02-21 13:20   ` MJ
2009-02-22  2:47 ` Juanma Barranquero
2009-02-22  5:07   ` MJ
2009-02-22  5:13     ` Juanma Barranquero
2009-02-22  5:23       ` MJ
2009-02-22  5:44         ` Juanma Barranquero
2009-02-22  6:07       ` Juanma Barranquero
2009-02-22 14:31   ` Andreas Schwab
2009-02-23  2:23     ` MJ

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.