Bug 12986 - Mtools: Error converting to codepage 850
Summary: Mtools: Error converting to codepage 850
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.05
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-08 16:18 UTC by Melanie
Modified: 2020-06-21 07:18 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.