From: Dennis Marti <dennis_marti@yahoo.com>
Subject: string concatenation with nul
Date: Mon, 28 Oct 2002 12:06:16 -0500 [thread overview]
Message-ID: <91DE282C-EA97-11D6-B8F5-00039304105E@yahoo.com> (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.
reply other threads:[~2002-10-28 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91DE282C-EA97-11D6-B8F5-00039304105E@yahoo.com \
--to=dennis_marti@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).