[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58356] xgettext does not reject bogus file names when emitting fil
From: |
Guido Flohr |
Subject: |
[bug #58356] xgettext does not reject bogus file names when emitting file references |
Date: |
Tue, 12 May 2020 11:16:18 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:75.0) Gecko/20100101 Firefox/75.0 |
Follow-up Comment #2, bug #58356 (project gettext):
> Similarly, commas should be escaped, so that a source file "foo.c:42, bar.c"
would not result in two references.
My bad ... references are separated by spaces not by commas.
But that means that filenames containing spaces should be rejected as well.
Strictly speaking, it would be sufficient to reject filenames that match the
regex /:[0-9]+ ./ but probably most PO editors will simply split at a space
and that guard would not be sufficient for them.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58356>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/