Skip to content

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

Description

@jangorecki

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

Activity

  1. MichaelChirico commented on Oct 2, 2023

    @MichaelChirico
    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.

  2. added this to the 1.14.9 milestone on Oct 29, 2023
  3. added a commit that references this issue on Oct 30, 2023
  4. jangorecki commented on Oct 30, 2023

    @jangorecki
    MemberAuthor

    fix already in hotfix patch branch

  5. added a commit that references this issue on Oct 30, 2023
  6. added a commit that references this issue on Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions