From 4a655e50a3890da9cd453a0b2c83dacc2cfcc34e Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 7 Jan 2011 09:08:58 -0800 Subject: 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. --- libguile/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libguile/read.c') diff --git a/libguile/read.c b/libguile/read.c index 4a9b5eace..54384fa5c 100644 --- a/libguile/read.c +++ b/libguile/read.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1999,2000,2001,2003, 2004, 2006, 2007, 2008, 2009, 2010 Free Software +/* Copyright (C) 1995,1996,1997,1999,2000,2001,2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Free Software * Foundation, Inc. * * This library is free software; you can redistribute it and/or @@ -111,7 +111,7 @@ scm_i_input_error (char const *function, string = scm_get_output_string (string_port); scm_close_output_port (string_port); - scm_error_scm (scm_from_locale_symbol ("read-error"), + scm_error_scm (scm_from_latin1_symbol ("read-error"), function? scm_from_locale_string (function) : SCM_BOOL_F, string, arg, -- cgit v1.2.3