[grep bug?] -i odd behavior on multibyte locale

From: Alecs King (alecsk_at_gmail.com)
Date: 05/30/05

  • Next message: Doug Barton: "wpa_supplicant + NDIS (broadcom) + linksys WRT54G possible?"
    Date: Tue, 31 May 2005 03:37:11 +0800
    To: freebsd-current@freebsd.org
    
    

    6.0-current as of May 27.
    world cvsup'd & built at May 25.

    [alecs@~]$ echo $LC_CTYPE
    zh_CN.GBK
    [alecs@~]$ echo a | grep -i A
    a
    [alecs@~]$ echo a | grep -i a
    a
    [alecs@~]$ echo A | grep -i A # XXX
    [alecs@~]$ echo A | grep -i a # XXX

    [alecs@~]$ export LC_CTYPE=C
    [alecs@~]$ echo a | grep -i A
    a
    [alecs@~]$ echo a | grep -i a
    a
    [alecs@~]$ echo A | grep -i A
    A
    [alecs@~]$ echo A | grep -i a
    A

    -- 
    Alecs King
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Doug Barton: "wpa_supplicant + NDIS (broadcom) + linksys WRT54G possible?"

    Relevant Pages

    • Re: ssh and chroot
      ... ++ echo /bin/mkdir ... ++ awk '' ... ++ grep '^/' ...
      (comp.security.ssh)
    • Re: Finding stream job signons
      ... it's a 'smart' grep. ... echo This command uses grep to search a fileset for all occurances ... setvar _g_grep_ok false ...
      (comp.sys.hp.mpe)
    • Re: Grep Question
      ... You can use single-quotes to enclose command arguments containing special characters so they won't be interpreted by the command shell. ... Subject: Grep Question ... If you wish to confirm the origin or content of this communication, ...
      (AIX-L)
    • Re: [opensuse] UUID=>0x and LVM
      ... kernel-default, kernel-default-base, and kernel- ... echo "Sorry, couldn't remove module $module." ... I wouldn't be able to create a shell script quickly like that. ... But unfortunately, not 'grep', nor 'basename' are available in the fall back shell. ...
      (SuSE)
    • Simplifying Grep Utility
      ... I'm trying to write a program that similair to the grep utitilty. ... echo " enter what to grep:" ...
      (comp.unix.shell)