[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string concatenation with nul
From: |
Dennis Marti |
Subject: |
string concatenation with nul |
Date: |
Mon, 28 Oct 2002 12:06:16 -0500 |
In GNU Emacs 21.1.1 (powerpc-apple-darwin6.0)
of 2002-07-27 on law
configured using `configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --without-x'
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: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
the following tests return nil when the second number is greater than
159
(equal (concat (format "%c" 0) (format "%c" 160))
(format "%c%c" 0 160))
(equal (format "%c%c" 0 230)
(format "%s%s" (format "%c" 0) (format "%c" 230)))
with-output-to-string does what I expect
(equal (format "%c%c" 0 200)
(with-output-to-string (princ (format "%c" 0))
(princ (format "%c" 200)))) ; t
GNU emacs 21.2.1 has the same problem on Windows XP and Red Hat Linux.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- string concatenation with nul,
Dennis Marti <=