mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: check langinfo.h and locale.h.
* encoding.c: use langinfo.h only if available. * main.c: use locale.h only if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a34e08d84
commit
f2515d9938
4 changed files with 19 additions and 1 deletions
4
main.c
4
main.c
|
@ -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);
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue