GNU bug report logs - #4915
23.1.50; problem with start-process and utf-16-le-dos coding system

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eduard Wiebe <usenet@HIDDEN>; dated Thu, 12 Nov 2009 20:45:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 12 Nov 2009 20:37:17 +0000
From ew@HIDDEN Thu Nov 12 12:37:17 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: *
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,IMPRONONCABLE_2
	autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nACKbFIq017134
	for <submit@HIDDEN>; Thu, 12 Nov 2009 12:37:17 -0800
Received: from mx10.gnu.org ([199.232.76.166]:51434)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <ew@HIDDEN>)
	id 1N8gPq-0003iB-6E
	for emacs-pretest-bug@HIDDEN; Thu, 12 Nov 2009 15:37:14 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <ew@HIDDEN>)
	id 1N8gPl-0005z8-1W
	for emacs-pretest-bug@HIDDEN; Thu, 12 Nov 2009 15:37:13 -0500
Received: from wp093.webpack.hosteurope.de ([80.237.132.100]:45749)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ew@HIDDEN>)
	id 1N8gPj-0005yO-UB
	for emacs-pretest-bug@HIDDEN; Thu, 12 Nov 2009 15:37:08 -0500
Received: from f055147177.adsl.alicedsl.de ([78.55.147.177] helo=nirvana.pusto.de); authenticated
	by wp093.webpack.hosteurope.de running ExIM with esmtpsa (TLSv1:DES-CBC3-SHA:168)
	id 1N8gPd-0002sq-Rj; Thu, 12 Nov 2009 21:37:02 +0100
Received: from ew by nirvana.pusto.de with local (Exim 4.69 (FreeBSD))
	(envelope-from <ew@HIDDEN>)
	id 1N8gPd-0000ej-85
	for emacs-pretest-bug@HIDDEN; Thu, 12 Nov 2009 21:37:01 +0100
From: Eduard Wiebe <usenet@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Subject: 23.1.50; problem with start-process and utf-16-le-dos coding system
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix)
Date: Thu, 12 Nov 2009 21:37:00 +0100
Message-ID: <86vdhfscnn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: Eduard Wiebe <ew@HIDDEN>
X-bounce-key: webpack.hosteurope.de;ew@HIDDEN;1258058227;b19cfbf9;
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@HIDDEN mailing lis=
t.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


I have a problem with following elisp snippet:

(let ((coding-system-for-read  'utf-16-le-dos)
      (coding-system-for-write 'utf-16-le-dos))
  (start-process  "ucs" "ucs" "cat" "utf-16-studie.txt"))


File utf-16-studie.txt contains some umlauts and a unicode character
--- utf-16-studie.txt content ---
=C3=A4=C3=B6=C3=BC=C3=9F=E2=94=B0
--- utf-16-studie.txt content ---
and is saved with utf-16-le-dos coding system.

After evaluation of the let form above the buffer "ucs" looks like this:
--- ucs buffer content ---
=E6=B0=A8=E7=91=A5=E2=A0=A0=E6=8C=A8=E6=91=AF=E6=B9=A9=E2=B5=A7=E7=A5=B3=E7=
=91=B3=E6=B5=A5=E6=98=AD=E7=89=AF=E7=88=AD=E6=85=A5=E2=81=A4=E2=9C=A0=E7=91=
=B5=E2=B5=A6=E3=98=B1=E6=B0=AD=E2=B5=A5=E6=BD=A4=E2=A5=B3=E2=80=8A=E2=80=A0=
=E2=80=A0=E2=A0=A0=E6=BD=A3=E6=A5=A4=E6=9D=AE=E7=8C=AD=E7=8D=B9=E6=95=B4=E2=
=B5=AD=E6=BD=A6=E2=B5=B2=E7=89=B7=E7=91=A9=E2=81=A5=E7=94=A7=E6=99=B4=E3=84=
=AD=E2=B4=B6=E6=95=AC=E6=90=AD=E7=8D=AF=E2=A4=A9=E2=80=8A=E2=A0=A0=E7=91=B3=
=E7=89=A1=E2=B5=B4=E7=89=B0=E6=8D=AF=E7=8D=A5=E2=81=B3=E2=88=A0=E6=8D=B5=E2=
=89=B3=E2=88=A0=E6=8D=B5=E2=89=B3=E2=88=A0=E6=85=A3=E2=89=B4=E2=88=A0=E7=91=
=B5=E2=B5=A6=E3=98=B1=E7=8C=AD=E7=95=B4=E6=A5=A4=E2=B9=A5=E6=B1=A5=E2=A4=A2=
=E0=A8=A9

Process ucs finished
--- ucs buffer content ---

C-u C-x h on the first glyph in ucs buffer generate following output:

        character: =E6=B0=A8 (27688, #o66050, #x6c28)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x6C28
           syntax: w 	which means: word
         category: .:Base, C:2-byte han, c:Chinese, j:Japanese, |:line brea=
kable
      buffer code: #xE6 #xB0 #xA8
        file code: #xE6 #xB0 #xA8 (encoded by coding system nil)
          display: by this font (glyph code)
    x:-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0 (#x30=
31)

Character code properties: customize what to show
  name: CJK IDEOGRAPH-6C28
  general-category: Lo (Letter, Other)


Also i observe the same behaviour under 22.3.1.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/ew/Software/share/emacs/23.1.50/etc/DEBUG for instructions.


In GNU Emacs 23.1.50.3 (i386-unknown-freebsd7.2, GTK+ Version 2.16.2)
 of 2009-10-15 on nirvana.pusto.de
Windowing system distributor `The X.Org Foundation', version 11.0.10601000
configured using `configure  '--prefix=3D/home/ew/Software''

Important settings:
  value of $LC_ALL: C
  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: de_DE.ISO8859-1
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  eldoc-mode: t
  display-time-mode: t
  icomplete-mode: t
  show-paren-mode: t
  partial-completion-mode: t
  tooltip-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
M-x r e p - e m - b u <tab> <return> <return> C-x k=20
<return> y e s <return> C-x 1 M-x <up> <return>

Recent messages:
Checking 57 files in /home/ew/Software/share/emacs/23.1.50/lisp/eshell...
Checking 70 files in /home/ew/Software/share/emacs/23.1.50/lisp/erc...
Checking 52 files in /home/ew/Software/share/emacs/23.1.50/lisp/emulation...
Checking 144 files in /home/ew/Software/share/emacs/23.1.50/lisp/emacs-lisp=
...
Checking 24 files in /home/ew/Software/share/emacs/23.1.50/lisp/cedet...
Checking 57 files in /home/ew/Software/share/emacs/23.1.50/lisp/calendar...
Checking 87 files in /home/ew/Software/share/emacs/23.1.50/lisp/calc...
Checking 33 files in /home/ew/Software/share/emacs/23.1.50/lisp/obsolete...
Checking 1 files in /home/ew/Software/share/emacs/23.1.50/leim...
Checking for load-path shadows...done

Load-path shadows:
None found.

Features:
(shadow gnus-cite flyspell ispell mail-extr gnus-msg gnus-art mm-uu
mml2015 epg-config mm-view smime dig gnus-sum nnoo gnus-group gnus-undo
nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win
message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies
mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums
mailabbrev gmm-utils mailheader canlock sha1 hex-util hashcash gnus
gnus-ems nnheader gnus-util netrc mail-utils mm-util mail-prsvr wid-edit
emacsbug sendmail eldoc wepkey typist utils ibuf-ext ibuffer remember
org-remember org byte-opt bytecomp byte-compile advice help-fns
help-mode view advice-preload org-footnote org-src org-list org-faces
org-compat org-macs easymenu time-date noutline outline easy-mmode
executable browse-url ps-print ps-def lpr windmove winner ring
image-dired format-spec edmacro kmacro dired-x dired-aux dired
regexp-opt ffap ido time avoid icomplete paren complete tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces
cus-face text-properties overlay md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gtk x-toolkit x multi-tty emacs)

--=20
Eduard Wiebe


--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=utf-16-studie.txt
Content-Transfer-Encoding: base64

w6TDtsO8w5/ilLANCg==
--=-=-=
Content-Type: application/emacs-lisp
Content-Disposition: attachment; filename=utf-16-studie.el
Content-Transfer-Encoding: quoted-printable

(let ((coding-system-for-read  'utf-16-le-dos)
      (coding-system-for-write 'utf-16-le-dos))
  (start-process  "ucs" "ucs" "cat" "utf-16-studie.el"))


--=-=-=--



Acknowledgement sent to Eduard Wiebe <usenet@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4915; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.