guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, master, updated. v2.1.0-185-g25752c4


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, master, updated. v2.1.0-185-g25752c4
Date: Sat, 31 Aug 2013 08:57:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=25752c4d1cef1049578d6b9b2cd0b6e44b8b8de7

The branch, master has been updated
       via  25752c4d1cef1049578d6b9b2cd0b6e44b8b8de7 (commit)
      from  be7ecef05c1eea66f30360f658c610710c5cb22e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 25752c4d1cef1049578d6b9b2cd0b6e44b8b8de7
Author: Andy Wingo <address@hidden>
Date:   Sat Aug 31 10:57:11 2013 +0200

    Faster scm_from_port_stringn
    
    * libguile/strings.c (scm_from_port_stringn): Always inline to
      scm_from_utf8_string if the byte sequence is valid utf-8.

-----------------------------------------------------------------------

Summary of changes:
 libguile/strings.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libguile/strings.c b/libguile/strings.c
index fa97a00..8ee909b 100644
--- a/libguile/strings.c
+++ b/libguile/strings.c
@@ -1740,7 +1740,8 @@ scm_from_port_stringn (const char *str, size_t len, SCM 
port)
   if (pti->encoding_mode == SCM_PORT_ENCODING_MODE_LATIN1)
     return scm_from_latin1_stringn (str, len);
   else if (pti->encoding_mode == SCM_PORT_ENCODING_MODE_UTF8
-           && pt->ilseq_handler == SCM_FAILED_CONVERSION_ERROR)
+           && (pt->ilseq_handler == SCM_FAILED_CONVERSION_ERROR
+               || (u8_check ((uint8_t *) str, len) == NULL)))
     return scm_from_utf8_stringn (str, len);
   else
     return scm_from_stringn (str, len, pt->encoding, pt->ilseq_handler);


hooks/post-receive
-- 
GNU Guile



reply via email to

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