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
stop("This locale collates too differently from C; please report.")
254
+
}
255
+
236
256
##########################
237
257
.do_not_rm = ls() # objects that exist at this point should not be removed by rm_all(); e.g. test_*, base_messages, Ctest_dt_win_snprintf, prevtest, etc
seed = as.integer(Sys.time()) # sample(9999L, 1L) temporary fix, because all the set.seed(.) used above makes this sample() step deterministic (always seed=9107)
4455
4475
# no NaN (because it's hard to match with base::order); tested below in 1988.4-8
4456
4476
set.seed(seed)
4457
-
c_sortable_letters = letters
4458
-
# Subset the letters until the collation order matches C. This way we don't totally ignore
4459
-
# any possible issues with sorting strings in unusual locales (even though this _should_
4460
-
# be impossible given we _always_ use C-collated order, such a regression test is still
4461
-
# beneficial as a sanity check).
4462
-
if (!identical(order(letters, method='shell'), order(letters, method='radix'))) {
0 commit comments