Hi!

I think there are two options:

a) apply the attached revised patch (2 lines) to /sbin/MAKEDEV. This allows some
calls (for example chown, mkdir etc) to return error messages in locale specific
languages, while the potential pitfalls due to collating sequence are taken care
of.

b) add

export LC_ALL=C

to the beginning of the file /sbin/MAKEDEV and thus force all error messages be
in English.

I would vote for the first option as it has the least impact while fixing the
problem. The LC_COLLATE=C option is tested and works as expected in sh.

-- 
Juhan Ernits
117c117,118
<       echo "$*" | sed -e 's/[^A-Za-z0-9_]/_/g'
---
>       # A-Z is not full alphabet in all locales (e.g. in et_EE)
>       echo "$*" | LC_ALL=C sed -e 's/[^A-Za-z0-9_]/_/g' 
320a322,323
>       # this is to make the case patterns work as expected in all locales
>       LC_COLLATE=C

Reply via email to