locale.cpp: Tweak for Win32, newlocale() and freelocale().

This commit is contained in:
NAKAMURA Takumi
2011-04-20 11:33:37 +09:00
parent be2e6396c3
commit c3089afe8d

View File

@@ -574,6 +574,16 @@ locale::id::__init()
// template <> class collate_byname<char> // template <> class collate_byname<char>
static inline
locale_t newlocale(int m, const char *l, locale_t b) {
return _create_locale(LC_ALL, l);
}
static inline
void freelocale(locale_t p) {
_free_locale(p);
}
collate_byname<char>::collate_byname(const char* n, size_t refs) collate_byname<char>::collate_byname(const char* n, size_t refs)
: collate<char>(refs), : collate<char>(refs),
__l(newlocale(LC_ALL_MASK, n, 0)) __l(newlocale(LC_ALL_MASK, n, 0))