[DRE-maint] Bug#521169: apt-listbugs: aptcleanup gives spurious error message

Vincent Lefevre vincent at vinc17.net
Sat Jan 14 23:03:47 GMT 2023


Control: fixed -1 2.1.2-1.1

On 2023-01-14 23:18:27 +0100, Lucas Nussbaum wrote:
> This looks fixed in version 2.1.3-1 of ruby-locale (or fixed in another
> package in the meantime), but feel free to reopen if it is not the case.

This actually no longer works:

joooj% ruby -e "require 'locale'; print Locale.codeset"
Traceback (most recent call last):
-e:1:in `<main>': undefined method `codeset' for Locale:Module (NoMethodError)

But according to /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb,
this has been replaced by "Locale.charset", which gives:

joooj% ruby -e "require 'locale'; print Locale.charset"
ISO8859-1%

using the same locales as in my test in 2010:

joooj% locale       
LANG=POSIX
LANGUAGE=
LC_CTYPE=en_US.ISO8859-1
LC_NUMERIC="POSIX"
LC_TIME=en_DK
LC_COLLATE=POSIX
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

So this was fixed even in 2.1.2-1.1 (Debian 11.6 machine).

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-ruby-extras-maintainers mailing list