[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1112159: mtools: mcopy breaks with new glibc >= 2.42-1 due to locale changes



Package: mtools
Severity: serious
Justification: breaks other packages autopkgtest
Affects: src:systemd

Dear Maintainer(s),

glibc 2.42-1 split out some old locales in a new package. This breaks
mcopy. The solution is simply, a dependency can be added:

libc-gconv-modules-extra | libc6 (<< 2.42-1~)

Given this package is QA-maintained, I'll add this fix and upload it
immediately.

$ truncate -s 100M foo
$ mkfs.vfat foo
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to UTF-8: Invalid argument
Cannot initialize conversion from UTF-8 to codepage 850: Invalid argument
Using internal CP850 conversion table
$ echo $?
0
$ touch bar
$ mcopy -o -i ./foo ./bar ::bar
Error converting to codepage 850 Invalid argument
Error setting code page
Cannot initialize '::'
::bar: Invalid argument
$ sudo apt install libc-gconv-modules-extra
Installing:
  libc-gconv-modules-extra

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 242
  Download size: 1126 kB
  Space needed: 8221 kB / 14.3 GB available

Get:1 http://deb.debian.org/debian experimental/main amd64
libc-gconv-modules-extra amd64 2.42-1 [1126 kB]
Fetched 1126 kB in 0s (9786 kB/s)
Selecting previously unselected package libc-gconv-modules-extra.
(Reading database ... 37358 files and directories currently installed.)
Preparing to unpack .../libc-gconv-modules-extra_2.42-1_amd64.deb ...
Unpacking libc-gconv-modules-extra (2.42-1) ...
Setting up libc-gconv-modules-extra (2.42-1) ...
$ mcopy -o -i ./foo ./bar ::bar
$ echo $?
0


Reply to: