Package: unifdef
Version: 1.0+20080502-1
Severity: normal
Tags: patch fixed-upstream

Hi,

unifdefall does not work in non-C locales:

 $ unifdefall /tmp/zlib-1.2.3.4.dfsg/example.c 
 comm: file 2 is not in sorted order
 $ lang=de...@euro unifdefall /tmp/zlib-1.2.3.4.dfsg/example.c
 comm: Datei 2 ist nicht sortiert

Since the sorting is not meant for humans, anyway, it makes sense to
set LC_COLLATE=C.  Tony Finch set LC_ALL=C in unifdef 1.188.

http://git.debian.org/?p=collab-maint/unifdef.git;a=commitdiff;h=c260a3f3;hp=0c4405#patch6

The problem seems to be that $tmp/alldef, which is created by taking a
sorted list of macro definitions like

 ab definition of ab
 a(foo) definition of a
 b definition of b

and stripping off everything but the macro names

 ab
 a
 b

is no longer sorted.  This can happen because shorter strings are
supposed to sort before longer strings but in non-C locales the (
punctuation is ignored, allowing letters afterward to affect the
sorting order.

Thought you might like to know.

Kind regards,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to