coreutils / gnulib

upstream mirror
http://git.savannah.gnu.org/gitweb/?p=gnulib.git
Other
268 stars 106 forks source link

LC_ALL issue #7

Open freddy77 opened 4 years ago

freddy77 commented 4 years ago

Hi, for spice-server project we import the top/maint.mk file however we have an issue with these lines:

# Prevent programs like 'sort' from considering distinct strings to be equal.
# Doing it here saves us from having to set LC_ALL elsewhere in this file.
export LC_ALL = C

specifically this affect a2x program (written in Python) which think that the encoding of some files is not utf-8 failing to compile documentation.

For more information see https://gitlab.freedesktop.org/spice/spice/issues/35.

What do you think about changing LC_ALL to LC_COLLATE?

pixelb commented 4 years ago

It wouldn't be that simple as existing LC_ALL would override LC_COLLATE. Also only collate is mentioned, but this could very well be impacting other locale behavior in gnulib using projects. I'd be wary of restricting to collate.

You may be able to control for spice with make -e or make LC_ALL=$LC_CTYPE etc.?