diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-08 12:52:40 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-08 12:52:40 +0300 |
commit | f5a73638cd98e01bad97fb3f1a69ffef7d07c1c5 (patch) | |
tree | c3dc1e5211fd31da6c2f133b8decb0c923a59648 /winsup/cygwin/external.cc | |
parent | 72e44746dce11fd1bbc10fcb68b8f2a5aa7aba51 (diff) |
* external.cc (cygwin_internal): Add CW_INT_SETLOCALE case to
allow to call internal_setlocale().
* nlsfuncs.cc (internal_setlocale): Make externally available.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_INT_SETLOCALE.
* nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
(__set_locale_from_locale_alias): Ignore "@cjknarrow" modifier.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 4d7f03d1b..bbf675a64 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -1,7 +1,7 @@ /* external.cc: Interface to Cygwin internals from external programs. Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009 Red Hat, Inc. + 2006, 2007, 2008, 2009, 2010 Red Hat, Inc. Written by Christopher Faylor <cgf@cygnus.com> @@ -468,6 +468,12 @@ cygwin_internal (cygwin_getinfo_types t, ...) res = 0; } break; + case CW_INT_SETLOCALE: + { + extern void internal_setlocale (); + internal_setlocale (); + res = 0; + } default: set_errno (ENOSYS); |