You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/tests/tests.Rraw
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18615,12 +18615,17 @@ test(2252.2, dt[, let(b=2L)], error = "\\[ was called on a data.table.*not data.
18615
18615
rm(.datatable.aware)
18616
18616
18617
18617
# tests for trunc.char handling wide characters # 5096
18618
-
local({
18618
+
local(if (l10n_info()$`UTF-8` || {
18619
18619
lc_ctype = Sys.getlocale('LC_CTYPE')
18620
+
lc_wantctype = 'en_US.UTF-8'
18620
18621
# Japanese multibyte characters require utf8. As of 2025, we're likely to be already running in a UTF-8 locale, but if not, try this setlocale() call as a last chance.
18621
18622
# Unfortunately, there is no guaranteed, portable way of switching to UTF-8 US English.
18622
-
if (!l10n_info()$`UTF-8`) Sys.setlocale('LC_CTYPE', "en_US.UTF-8")
0 commit comments