[pkg-boost-devel] Bug#893884: libboost-locale1.62.0: LC_CTYPE overrides value of LC_ALL

Nicolas Dandrimont olasd at debian.org
Fri Mar 23 14:52:38 UTC 2018


Package: libboost-locale1.62.0
Version: 1.62.0+dfsg-5
Severity: normal
Tags: upstream

Dear maintainer,

libboost-locale's boost::locale::util::get_system_locale function gets the
system locale using environment variables in the following order: LC_CTYPE,
LC_ALL, LANG.

LC_ALL should have precedence over all other variables, as written in locale(7):

    If the second argument to setlocale(3) is an empty string, "", for the
    default locale, it is determined using the following steps:

    1. If there is a non-null environment variable LC_ALL, the value of
    LC_ALL is used.

    2. If an environment variable with the same name as one of the categories
    above exists and is non-null, its value is used for that category.

    3. If there is a non-null environment variable LANG, the value of LANG is
    used.

I've looked at the upstream history, but this source file has been imported
as-is in SVN 7 years ago and hasn't been touched since, therefore I couldn't
find the upstream rationale for this resolution order.

Thanks for considering this report,
Nicolas Dandrimont

-- System Information:
Debian Release: buster/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libboost-locale1.62.0 depends on:
ii  libboost-chrono1.62.0  1.62.0+dfsg-5
ii  libboost-system1.62.0  1.62.0+dfsg-5
ii  libboost-thread1.62.0  1.62.0+dfsg-5
ii  libc6                  2.27-2
ii  libgcc1                1:8-20180321-1
ii  libicu57               57.1-9
ii  libstdc++6             8-20180321-1

libboost-locale1.62.0 recommends no packages.

libboost-locale1.62.0 suggests no packages.

-- no debconf information



More information about the pkg-boost-devel mailing list