Skip to content

Commit 49b6feb

Browse files
committed
Add printing but copy to see where it crashes
1 parent 2c15c59 commit 49b6feb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libcxx/include/__locale_dir/locale_base_api/bsd_locale_defaults.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define __libcpp_mbrtowc_l(pwc, s, n, ps, l) mbrtowc_l(pwc, s, n, ps, l)
2828
#define __libcpp_mbtowc_l(pwc, pmb, max, l) mbtowc_l(pwc, pmb, max, l)
2929
#define __libcpp_mbrlen_l(s, n, ps, l) mbrlen_l(s, n, ps, l)
30-
inline _LIBCPP_HIDE_FROM_ABI lconv* __libcpp_localeconv_l(locale_t& __loc) {
30+
inline _LIBCPP_HIDE_FROM_ABI lconv* __libcpp_localeconv_l(locale_t __loc) {
3131
return localeconv_l(__loc);
3232
}
3333
#define __libcpp_mbsrtowcs_l(dest, src, len, ps, l) mbsrtowcs_l(dest, src, len, ps, l)

libcxx/src/support/win32/locale_win32.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ lconv* localeconv_l(locale_t& loc) {
4040
lconv* lc = localeconv();
4141
if (!lc)
4242
return lc;
43+
44+
std::fprintf(stderr, "Calling __store_lconv in locale_win32.cpp\n");
4345
return loc.__store_lconv(lc);
4446
}
4547
size_t mbrlen_l(const char* __restrict s, size_t n, mbstate_t* __restrict ps, locale_t loc) {

0 commit comments

Comments
 (0)