diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-12-15 01:23:23 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-12-15 01:31:23 +0100 |
commit | ed4c3739668b4b111b38555b8bc101cb74c87c1c (patch) | |
tree | bebdd170764e27c853187118cf36d79fec78697c /libguile/feature.h | |
parent | c2c2b5a49b1ce37a42417037c3515864a808e53b (diff) | |
download | guile-ed4c3739668b4b111b38555b8bc101cb74c87c1c.tar.gz |
Arrange to convert command-line arguments from the right encoding.
This is a temporary workaround for the 2.0 stable series. The next
stable series should have an implicit `setlocale (LC_ALL, "")' call,
which will make this unnecessary.
* libguile/feature.c (progargs_fluid): Rename to...
(scm_program_arguments_fluid): ... this. Update users.
* libguile/feature.h (scm_program_arguments_fluid): New internal
declaration.
* libguile/init.c (invoke_main_func): Call
`scm_i_set_boot_program_arguments' instead of
`scm_set_program_arguments'.
* libguile/script.c (locale_arguments_to_string_list,
scm_i_set_boot_program_arguments): New functions.
(scm_compile_shell_switches): Use `locale_arguments_to_string_list'.
* libguile/script.h (scm_i_set_boot_program_arguments): New internal
declaration.
* test-suite/standalone/Makefile.am (check_SCRIPTS, TESTS): Add
`test-command-line-encoding'.
* test-suite/standalone/test-command-line-encoding: New file.
Diffstat (limited to 'libguile/feature.h')
-rw-r--r-- | libguile/feature.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/feature.h b/libguile/feature.h index d373bc773..467f9ed74 100644 --- a/libguile/feature.h +++ b/libguile/feature.h @@ -3,7 +3,8 @@ #ifndef SCM_FEATURE_H #define SCM_FEATURE_H -/* Copyright (C) 1995,1996,1999,2000,2001, 2006, 2007, 2008 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1999, 2000, 2001, 2006, 2007, 2008, + * 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 @@ -29,6 +30,8 @@ SCM_API void scm_add_feature (const char* str); SCM_API SCM scm_program_arguments (void); SCM_API void scm_set_program_arguments (int argc, char **argv, char *first); SCM_API SCM scm_set_program_arguments_scm (SCM lst); + +SCM_INTERNAL SCM scm_program_arguments_fluid; SCM_INTERNAL void scm_init_feature (void); #endif /* SCM_FEATURE_H */ |