[debhelper-devel] Bug#873831: debhelper: [meson] Default to a UTF8 locale?

Jeremy Bicha jbicha at ubuntu.com
Thu Aug 31 14:37:06 UTC 2017


Source: debhelper
Version: 10.7.2
X-Debbugs-CC: meson at packages.debian.org

Excerpt from the nautilus 3.25.91-1 build log
================================
Warning: You are using 'ANSI_X3.4-1968' which is not a a
Unicode-compatible locale.
You might see errors if you use UTF-8 strings as filenames, as
strings, or as file contents.
Please switch to a UTF-8 locale for your platform.
The Meson build system

==================================
And in fact it does cause errors and build failures in some cases such
as with geocode-glib 3.25.4.1-1.

This was worked around in gnome-builder 3.25.91-1 with this line added
to its debian/rules :
export LC_ALL=C.UTF-8

I believe that meson assumes it's built using a UTF-8 locale. Is this
something we can have debhelper handle automatically for the meson
buildsystem?

References
========
https://buildd.debian.org/status/fetch.php?pkg=nautilus&arch=amd64&ver=3.25.90-1&stamp=1504138352

https://buildd.debian.org/status/fetch.php?pkg=geocode-glib&arch=amd64&ver=3.25.4.1-1&stamp=1504099537

https://anonscm.debian.org/viewvc/pkg-gnome/packages/unstable/gnome-builder/debian/rules?view=markup

Thanks,
Jeremy Bicha



More information about the debhelper-devel mailing list