Package: belocs-locales-data

Hi,

first, let me say that this is really i18n issue belonging to
locale/belocs, although the description does not seem to indicate
this at the begining.

Recently I was trying to recursively diff two directories with the
*same* content, but all I got was "Only in directory: appendix.xml".

How to reproduce this bug:

mkdir a b
echo "Hi" > a/appendix.xml
echo "Hi" > b/appendix.xml

LANG=cs_CZ.UTF-8 diff -r a b

At this time I get errors
Pouze v a: appendix.xml  # which means: Only in a: appendix.xml
Pouze v b: appendix.xml  # which means: Only in b: appendix.xml

Running this with different locale returned the exected result (i.e.
no output, as the files are the same).

LANG=en_GB.UTF-8 diff -r a b

After digging in diff sources, I came to the function call
[variables replaced with the real content]:

strcoll("appendix.xml", "appendix.xml")

which returned error value -32 as its return value (which later caused
the described behaviour).

Because strcoll() honours the current LC_COLLATE, it seems there is a
bug in cs_CZ (and sk_SK for that matter) locale.

The problem seems to be with the dot in the filename. When renamed to
something without the dot, strcoll (and therefore diff) run fine.

Running on current testing (locales 2.3.6-3 / belocs-data 2.3.4-32).

Thanks for help!
-- 
Miroslav Kure


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to