mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
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.
49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/* classes: h_files */
|
||
|
||
#ifndef SCM_SCRIPT_H
|
||
#define SCM_SCRIPT_H
|
||
|
||
/* Copyright (C) 1997,1998,2000, 2006, 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
|
||
* as published by the Free Software Foundation; either version 3 of
|
||
* the License, or (at your option) any later version.
|
||
*
|
||
* This library is distributed in the hope that it will be useful, but
|
||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
* Lesser General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU Lesser General Public
|
||
* License along with this library; if not, write to the Free Software
|
||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||
* 02110-1301 USA
|
||
*/
|
||
|
||
|
||
|
||
#include "libguile/__scm.h"
|
||
|
||
|
||
SCM_API char *scm_find_executable (const char *name);
|
||
SCM_API char *scm_find_impl_file (char *exec_path,
|
||
const char *generic_name,
|
||
const char *initname,
|
||
const char *sep);
|
||
SCM_API char **scm_get_meta_args (int argc, char **argv);
|
||
SCM_API int scm_count_argv (char **argv);
|
||
SCM_API void scm_shell_usage (int fatal, char *message);
|
||
SCM_API SCM scm_compile_shell_switches (int argc, char **argv);
|
||
SCM_API void scm_shell (int argc, char **argv);
|
||
SCM_API char *scm_usage_name;
|
||
SCM_INTERNAL void scm_i_set_boot_program_arguments (int argc, char *argv[]);
|
||
SCM_INTERNAL void scm_init_script (void);
|
||
|
||
#endif /* SCM_SCRIPT_H */
|
||
|
||
/*
|
||
Local Variables:
|
||
c-file-style: "gnu"
|
||
End:
|
||
*/
|