Bug 12986

Summary: Mtools: Error converting to codepage 850
Product: buildroot Reporter: Melanie <melanie>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2020.05   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:

Description Melanie 2020-06-08 16:18:43 UTC
The 'BR2_PACKAGE_MTOOLS' program builds fine but on the target system some of the mtools-commands (i.e. mdir) fails to execute with the following message:

Error converting to codepage 850 Invalid argument

As described in the mtools-manual [1], codepage 850 is used by default.
I've solved the problem by adding 'BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y' to my buildroot-configuration.

From my point of view, the config option 'BR2_PACKAGE_MTOOLS' should automatically select 'BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY' to make sure that the required gconv libraries are available on the target system.



[1] https://www.gnu.org/software/mtools/manual/mtools.html#miscellaneous-variables
Comment 1 Fabrice Fontaine 2020-06-11 06:31:41 UTC
Hi,

Thanks for the bug report, I sent the following patch:
https://patchwork.ozlabs.org/project/buildroot/patch/20200611062826.643125-1-fontaine.fabrice@gmail.com/

Best Regards,

Fabrice
Comment 2 Yann E. MORIN 2020-06-21 07:18:25 UTC
Melanie, All,

Thanks for the report. This is now supposedly fixed with the
patch from Fabrice, applied as commit ac4a61e0ea.

Regards,
Yann E. MORIN.