On Tue, Aug 25, 2020 at 3:40 PM 'Reimundo Heluani' via sage-devel
<
sage-...@googlegroups.com> wrote:
>
> On Aug 25, Dima Pasechnik wrote:
> >On Tue, Aug 25, 2020 at 2:23 PM 'Reimundo Heluani' via sage-devel
> ><
sage-...@googlegroups.com> wrote:
> >>
> >> Hello, now that GCC-10 has been merged I wanted to run a patchbot again. The
> >> issue of the non-existing C-locale C.UTF-8 prevents me from doing so since
> >> there are tests that failed like so:
> >>
> >> File "src/sage/tests/cmdline.py", line 227, in sage.tests.cmdline.test_executable
> >> Failed example:
> >> err # optional - build
> >> Expected:
> >> ''
> >> Got:
> >> '/home/sage-patchbot/sage/build/bin/sage-spkg: line 73: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\nbash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)\n'
> >>
> >>
> >> What can I do about this?
> >
> >can you install the C.UTF-8 locale?
> >
> That locale seems to be an invention of Debian that Ubuntu started using. This
> was closed as wontfix 8 years ago on Arch.
>
>
https://bugs.archlinux.org/task/32296
IMHO it's silly not to have a language-neutral locale that supports
UTF-8, that's what C.UTF-8 really is.
I'd suggest to Arch to reconsider their position.
Different <your_lang_env>.UTF-8 locales lead to different ordering of
Unicode symbols, something
that'd require extra care in doctests etc.
If you'd still go with <your_lang_env>.UTF-8,
a proper fix for Sage would seem to use gettext, as this is the
solution from the autotools universe.
Patches welcome :-)
Then, locale on Linux supports aliases, something to be defined in
/etc/locale.alias - I presume C.UTF-8 may be
defined there as an alias for <your_lang_env>.UTF-8
- if this works, this would be a quick fix.
Otherwise you can patch build/bin/sage-spkg - that's the only place
where C.UTF-8 is mentioned, I think.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/20200825143953.GA582885%40vertex.