Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAN warning: locale code page other than 65001 ("UTF-8") may cause problems #5696

Closed
jangorecki opened this issue Oct 1, 2023 · 2 comments · Fixed by #5712
Closed

CRAN warning: locale code page other than 65001 ("UTF-8") may cause problems #5696

jangorecki opened this issue Oct 1, 2023 · 2 comments · Fixed by #5712

Comments

@jangorecki
Copy link
Member

At the moment observed only on r-devel-windows-x86_64.
Note that test failures seen in below log are reported in other issue and are not related to locale warning AFAIK.

  Sat Sep 30 11:06:59 2023 endian==little, sizeof(long double)==16, longdouble.digits==64, sizeof(pointer)==8, TZ==unset, Sys.timezone()=='Europe/Berlin', Sys.getlocale()=='LC_COLLATE=C;LC_CTYPE=German_Germany.utf8;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C', l10n_info()=='MBCS=TRUE; UTF-8=TRUE; Latin-1=FALSE; codepage=65001; system.codepage=65001', getDTthreads()=='OpenMP version (_OPENMP)==201511; omp_get_num_procs()==48; R_DATATABLE_NUM_PROCS_PERCENT==unset (default 50); R_DATATABLE_NUM_THREADS==unset; R_DATATABLE_THROTTLE==unset (default 1024); omp_get_thread_limit()==2; omp_get_max_threads()==48; OMP_THREAD_LIMIT==2; OMP_NUM_THREADS==unset; RestoreAfterFork==true; data.table is using 2 threads with throttle==1024. See ?setDTthreads.', zlibVersion()==1.2.13 ZLIB_VERSION==1.2.13
  Error in test.data.table() :
    4 errors out of 9906. Search tests/tests.Rraw for test numbers: 1962.0473, 2040.1, 2040.2, 2067.4.
  In addition: Warning messages:
  1: In Sys.setlocale("LC_CTYPE", "Chinese (Simplified)_China.936") :
    using locale code page other than 65001 ("UTF-8") may cause problems
  2: In (function (category = "LC_ALL", locale = "") :
    using locale code page other than 65001 ("UTF-8") may cause problems
@MichaelChirico
Copy link
Member

Probably we should just suppressWarnings() since this is in tests, any "problems" would be detected by a test failure. Alternatively, we might check if the "new" (4.2.0) Sys.setlanguage() will work for those tests.

@jangorecki jangorecki added this to the 1.14.9 milestone Oct 29, 2023
jangorecki added a commit that referenced this issue Oct 30, 2023
@jangorecki
Copy link
Member Author

fix already in hotfix patch branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants