unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* string concatenation with nul
@ 2002-10-28 17:06 Dennis Marti
  0 siblings, 0 replies; only message in thread
From: Dennis Marti @ 2002-10-28 17:06 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-28 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 17:06 string concatenation with nul Dennis Marti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).