This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: locale-source validation script


On Wed, Jul 26, 2017 at 8:44 AM, Mike FABIAN <mfabian@redhat.com> wrote:
> Zack Weinberg <zackw@panix.com> wrote:
>
>> - The complaints about "inappropriate character '\t'" are all caused
>> by _unintentional_ tabs inside strings.  If you write
>>
>> message "xyz/
>>          abc"
>>
>> the whitespace on the second line gets included in the string, which
>> is not what you want.
>
> Yes, at the moment we get for example:
>
> $ LC_ALL=et_EE.UTF-8 locale -k postal_fmt
> postal_fmt="%a%N                 %f%N            %d%N            %b%N            %s%t%h%t%e%t%r%N        %C-%z %T%N              %c%N"
>
> I’ll fix it like this, this is far more readable as well:

Note that there's probably a bunch of similar cases where the
undesirable whitespace is just space characters, no tabs - my script
won't catch that.  (I won't be working on it today, but this is on my
list of things to fix.)

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]