summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-02-15 22:44:24 -0700
committerKarl Williamson <khw@cpan.org>2018-02-18 15:44:23 -0700
commit58e641fba50d93bcd84c0dc042b36d201958293d (patch)
treebd06d20f02a79ea06ae9a221870173f919482a5b /proto.h
parentb2e9ba0c7ee0f62ac452f6ba0a7389659e2d6ee4 (diff)
downloadperl-58e641fba50d93bcd84c0dc042b36d201958293d.tar.gz
Add switch_to_globale_locale()
This new API function is for use in applications that call alien library routines that are expecting the old pre-POSIX 2008 locale functionality, namely a single global locale accessible via setlocale(). This function converts the calling thread to use that global locale, if not already there.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index ec5009e9bd..80b9e240b5 100644
--- a/proto.h
+++ b/proto.h
@@ -3513,6 +3513,7 @@ PERL_CALLCONV SV* Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* l
#define PERL_ARGS_ASSERT_SWASH_INIT \
assert(pkg); assert(name); assert(listsv)
+PERL_CALLCONV void Perl_switch_to_global_locale(void);
PERL_CALLCONV bool Perl_sync_locale(void);
PERL_CALLCONV void Perl_sys_init(int* argc, char*** argv);
#define PERL_ARGS_ASSERT_SYS_INIT \