1 |
On Fri, 13 Nov 2015 12:46:31 +0100 |
2 |
Alexander Berntsen <bernalex@g.o> wrote: |
3 |
|
4 |
> -----BEGIN PGP SIGNED MESSAGE----- |
5 |
> Hash: SHA512 |
6 |
> |
7 |
> On 11/11/15 22:33, Michał Górny wrote: |
8 |
> > Output a warning if LC_CTYPE is set to a value that causes libc |
9 |
> > toupper() and/or tolower() conversions not apply correctly to printable |
10 |
> > ASCII characters. |
11 |
> I think you a verb. |
12 |
> |
13 |
> > + "Please consider enabling another locale (such as " + |
14 |
> > + "en_US.UTF-8) in /etc/locale.gen and setting it " + |
15 |
> > + "as LC_TYPE in make.conf.") |
16 |
> Not sure this is really necessary. |
17 |
> |
18 |
> > + if uc != ruc: |
19 |
> > + msg.extend([ |
20 |
> > + " %s -> %s" % (''.join([chr(x) for x in lc]), |
21 |
> > + ''.join([chr(x) for x in ruc])), |
22 |
> > + " %28s: %s" % ('expected', |
23 |
> > + ''.join([chr(x) for x in uc]))]) |
24 |
> > + if lc != rlc: |
25 |
> > + msg.extend([ |
26 |
> > + " %s -> %s" % (''.join([chr(x) for x in uc]), |
27 |
> > + ''.join([chr(x) for x in rlc])), |
28 |
> > + " %28s: %s" % ('expected', |
29 |
> > + ''.join([chr(x) for x in lc]))]) |
30 |
> This is very silly. Even a for loop or list comprehension would be |
31 |
> better. |
32 |
|
33 |
Then please suggest a better one since I don't really understand what |
34 |
you dislike, nor what you want. |
35 |
|
36 |
That said, I don't really like this patch. If you can come up with |
37 |
something better, then please by all means do. |
38 |
|
39 |
-- |
40 |
Best regards, |
41 |
Michał Górny |
42 |
<http://dev.gentoo.org/~mgorny/> |