diff options
author | Mark H Weaver <mhw@netris.org> | 2018-10-16 02:34:18 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2018-10-17 21:38:43 -0400 |
commit | c2a654b7d29f5e2f32fd1313cc80162fd0c8f992 (patch) | |
tree | b7d3afb6adec15951465ad37ad2242017905a52a /libguile/init.c | |
parent | 3845343cf33b6fb81c772a65e238c5377668789d (diff) | |
download | guile-c2a654b7d29f5e2f32fd1313cc80162fd0c8f992.tar.gz |
Use 'scm_from_utf8_{string,symbol,keyword}' for C string literals.
Partial fix for <https://bugs.gnu.org/33044>.
Reported by Tom de Vries <tdevries@suse.de>.
Fix several instances of the mistake of using 'scm_from_locale_*' for C
strings that originally came from a C string literal. Change several
uses of 'scm_from_latin1_*' as well, to promote the practice of writing
code that works for arbitrary C string literals.
Also add missing years to the copyright notices of changed files, based
on the git history.
* libguile/debug-malloc.c, libguile/deprecation.c, libguile/error.c,
libguile/eval.c, libguile/expand.c, libguile/extensions.c,
libguile/filesys.c, libguile/init.c, libguile/load.c,
libguile/modules.c, libguile/pairs.c, libguile/posix.c,
libguile/print.c, libguile/random.c, libguile/read.c,
libguile/regex-posix.c, libguile/snarf.h, libguile/srfi-13.c,
libguile/stacks.c, libguile/stime.c, libguile/strports.c,
libguile/values.c: Use 'scm_from_utf8_*' where appropriate.
Diffstat (limited to 'libguile/init.c')
-rw-r--r-- | libguile/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libguile/init.c b/libguile/init.c index b046685d4..00d2e806a 100644 --- a/libguile/init.c +++ b/libguile/init.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1995-2004, 2006, 2009-2014 Free Software Foundation, Inc. +/* Copyright (C) 1995-2004, 2006, 2009-2014, 2016-2018 + * 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 @@ -241,7 +242,7 @@ scm_load_startup_files () SCM_SITE_DIR and SCM_LIBRARY_DIR when searching for the site init file, so we do this before loading Ice-9. */ SCM init_path = - scm_sys_search_load_path (scm_from_locale_string ("init.scm")); + scm_sys_search_load_path (scm_from_utf8_string ("init.scm")); /* Load Ice-9. */ if (!scm_ice_9_already_loaded) |