[pkg-lua-devel] Bug#969412: lua-cjson: JSON floats may break w/ German locale

Matthias Urlichs matthias at urlichs.de
Wed Sep 2 11:06:24 BST 2020


Package: lua-cjson
Version: 2.1.0+dfsg-2.1
Severity: important

German locale specifies the comma to be used as the decimal "point".
Unfortunately lua-cjson checks for that quite early and doesn't consider
later locale changes.

Also, it only replaces the comma but doesn't consider locales what use
different digits.

The solution is to build this library with -DUSE_INTERNAL_FPCONV.

-- System Information:
Debian Release: 10.4
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'unstable'), (550, 'experimental'), (550, 'oldstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lua-cjson depends on:
ii  libc6  2.31-2

lua-cjson recommends no packages.

lua-cjson suggests no packages.

-- no debconf information



More information about the pkg-lua-devel mailing list