diff options
author | Andy Wingo <wingo@pobox.com> | 2011-01-07 09:08:58 -0800 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-01-07 09:18:41 -0800 |
commit | 4a655e50a3890da9cd453a0b2c83dacc2cfcc34e (patch) | |
tree | 050c60a5546fa5908ddcd6380f63e4c6eef6770a /libguile/srfi-14.c | |
parent | 30c282bf93d7162fd8898a035ab60a3a556c5199 (diff) | |
download | guile-4a655e50a3890da9cd453a0b2c83dacc2cfcc34e.tar.gz |
use scm_from_latin1_symboln for string literals and load-symbol
* libguile/bytevectors.c:
* libguile/eval.c:
* libguile/goops.c:
* libguile/i18n.c:
* libguile/load.c:
* libguile/memoize.c:
* libguile/modules.c:
* libguile/ports.c:
* libguile/print.c:
* libguile/procs.c:
* libguile/programs.c:
* libguile/read.c:
* libguile/script.c:
* libguile/srfi-14.c:
* libguile/stacks.c:
* libguile/strings.c:
* libguile/throw.c:
* libguile/vm.c: Use scm_from_latin1_symboln to make symbols from string
literals, because they aren't in the user's locale -- they are in
ASCII, and we can optimize this case.
* libguile/vm-i-loader.c: Also use scm_from_latin1_symboln when loading
narrow symbols.
Diffstat (limited to 'libguile/srfi-14.c')
-rw-r--r-- | libguile/srfi-14.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/srfi-14.c b/libguile/srfi-14.c index 09fe90c63..af106edcf 100644 --- a/libguile/srfi-14.c +++ b/libguile/srfi-14.c @@ -1,6 +1,6 @@ /* srfi-14.c --- SRFI-14 procedures for Guile * - * Copyright (C) 2001, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. + * Copyright (C) 2001, 2004, 2006, 2007, 2009, 2011 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -2036,9 +2036,9 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset), SCM_VALIDATE_SMOB (1, charset, charset); cs = SCM_CHARSET_DATA (charset); - e1 = scm_cons (scm_from_locale_symbol ("char-set"), + e1 = scm_cons (scm_from_latin1_symbol ("char-set"), charset); - e2 = scm_cons (scm_from_locale_symbol ("n"), + e2 = scm_cons (scm_from_latin1_symbol ("n"), scm_from_size_t (cs->len)); for (i = 0; i < cs->len; i++) @@ -2059,7 +2059,7 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset), ranges = scm_append (scm_list_2 (ranges, scm_list_1 (elt))); } - e3 = scm_cons (scm_from_locale_symbol ("ranges"), + e3 = scm_cons (scm_from_latin1_symbol ("ranges"), ranges); return scm_list_3 (e1, e2, e3); |