diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,7 +12,9 @@ #undef RUBY_EXPORT #include "ruby/ruby.h" +#ifdef LOCALE_H #include <locale.h> +#endif RUBY_GLOBAL_SETUP @@ -23,7 +25,9 @@ main(int argc, char **argv, char **envp) extern void ruby_set_debug_option(const char *); ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif +#ifdef LOCALE_H setlocale(LC_CTYPE, ""); +#endif ruby_sysinit(&argc, &argv); { |