emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#18536: closed ([PATCH] Fix unread-string for chara


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#18536: closed ([PATCH] Fix unread-string for characters 0x80 <= c < 0xf0 in UTF-8)
Date: Wed, 24 Sep 2014 01:47:02 +0000

Your message dated Tue, 23 Sep 2014 21:44:38 -0400
with message-id <address@hidden>
and subject line Re: bug#18536: [PATCH] Fix unread-string for characters 0x80 
<= c < 0xf0 in UTF-8
has caused the debbugs.gnu.org bug report #18536,
regarding [PATCH] Fix unread-string for characters 0x80 <= c < 0xf0 in UTF-8
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
18536: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18536
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] Fix unread-string for characters 0x80 <= c < 0xf0 in UTF-8 Date: Tue, 23 Sep 2014 17:10:19 +0200
* libguile/ports.c (scm_ungetc_unlocked): Fix bad reencoding.

The code

(with-input-from-string ""
  (lambda () (unread-string "\"ä\"" (current-input-port)) (read)))

returns "?" instead of "ä".  This bug was introduced in
commit be7ecef05c1eea66f30360f658c610710c5cb22e

Signed-off-by: David Kastrup <address@hidden>
---
 libguile/ports.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libguile/ports.c b/libguile/ports.c
index 8185d85..3129282 100644
--- a/libguile/ports.c
+++ b/libguile/ports.c
@@ -2139,7 +2139,7 @@ scm_ungetc_unlocked (scm_t_wchar c, SCM port)
 
   if (pti->encoding_mode == SCM_PORT_ENCODING_MODE_UTF8)
     {
-      if (c < 0xf0)
+      if (c < 0x80)
         {
           result_buf[0] = (char) c;
           result = result_buf;
-- 
1.9.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#18536: [PATCH] Fix unread-string for characters 0x80 <= c < 0xf0 in UTF-8 Date: Tue, 23 Sep 2014 21:44:38 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Pushed to master, commit f7582f9807d9a10fba86f54c4aeaa7444c51a315.
I'm closing this bug now.

     Thanks,
       Mark


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]