Bug#363017: makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-06-08 Thread Juhan Ernits
Hi again! > The LC_COLLATE=C option is tested and works as expected in sh. Justin Pryzby was still right and I was wrong. I tried again, and it needs to be LC_ALL=C as Justin said. Sorry for multiple e-mails. This should be the last version of the patch from my part. -- Juhan Ernits 117c117,1

Bug#363017: makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-06-08 Thread Juhan Ernits
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 expor

Bug#363017: this bug/#363017/makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-05-17 Thread Justin Pryzby
You can just export LC_ALL=C at the top of the file, then you can assume sorting order and other stuff. If you just set LC_COLLATE or similar, then the users value of LC_ALL will override it (if valid, otherwise it will fall back to C anyway). Justin -- To UNSUBSCRIBE, email to [EMAIL PROTECTE

Bug#363017: makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-04-17 Thread Juhan Ernits
Actually it should be there only for the locale dependent invocations, thus only for the sed invocation on line 117 in /sbin/MAKEDEV. But, having looked at the script closer, it looks like LC_COLLATE=C should be additionally set globally as there are cases (for the case clause starting on line 32

Bug#363017: makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-04-17 Thread Bdale Garbee
On Mon, 2006-04-17 at 10:05 +0300, Juhan Ernits wrote: > $ echo pqrstu | LC_ALL=et_EE sed -e 's/[a-z]//g' Is the LC_ALL=C necessary for all the sed invocations, or only the ones doing an explicit alpha range match? If it's necessary for all calls, is it possible to set this once for the script

Bug#363017: makedev: Different behaviour of sed calls under different locales due to collating sequence

2006-04-17 Thread Juhan Ernits
Package: makedev Version: 2.3.1-81 Severity: normal Tags: patch l10n *** Please type your report below this line *** As Denis Barbier pointed out, z is not the last character of the alphabet in some locales: $ echo pqrstu | LC_ALL=et_EE sed -e 's/[a-z]//g' tu Thus sed should be called un