mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
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.
This commit is contained in:
parent
a47a5e6828
commit
3ae69f3063
23 changed files with 96 additions and 91 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 1996-1997,2000-2001,2006-2014,2017-2018
|
||||
/* Copyright 1996-1997,2000-2001,2006-2015,2017-2019
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Guile.
|
||||
|
@ -469,9 +469,9 @@ scm_init_stacks ()
|
|||
scm_sys_stacks = scm_make_thread_local_fluid (SCM_BOOL_F);
|
||||
scm_c_define ("%stacks", scm_sys_stacks);
|
||||
|
||||
scm_stack_type = scm_make_vtable (scm_from_locale_string (SCM_STACK_LAYOUT),
|
||||
scm_stack_type = scm_make_vtable (scm_from_utf8_string (SCM_STACK_LAYOUT),
|
||||
SCM_UNDEFINED);
|
||||
scm_set_struct_vtable_name_x (scm_stack_type,
|
||||
scm_from_latin1_symbol ("stack"));
|
||||
scm_from_utf8_symbol ("stack"));
|
||||
#include "stacks.x"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue