also sprach Clint Adams <[EMAIL PROTECTED]> [2006.09.22.1706 +0200]:
> echo Bübü Übü | LC_CTYPE=en_US.UTF-8 sed 's/[[:upper:]]/X/g'
> Xübü Xbü
> 
> echo Bübü Übü | LC_CTYPE=en_US.UTF-8 sed 's/[[:lower:]]/X/g'
> BXXX ÜXX

As established on IRC, LC_COLLATE is the variable to use.

Anyway, even if I set that (or LC_ALL), the y/// substitution still
does not work.

< Clint> madduck: ah, that's just treating them as "normal" bracket expressions
< Clint> echo Bübü Übü upper | LANG=C LC_CTYPE=en_US.UTF-8 
LC_COLLATE=en_US.UTF-8 sed 
         'y/[:upper:]/[:lower:]/'
< Clint> so there are two separate issues

Thanks, Clint.

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer, author, administrator, and user
`. `'`     http://people.debian.org/~madduck http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to