[BUG] 'case' broken for multi-byte characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As of this commit:

commit c5bf9702ea110bede687b57c0b5fa3fd0e15829e (HEAD, refs/bisect/bad)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date:   Sun Jun 2 09:28:59 2024 +0800

    expand: Add multi-byte support to pmatch

    Add CTLMBCHAR support to pmatch.

    POSIX equivalence classes and collating symbols are not unsupported.

    Enable CTLMBCHAR generation in mbtodest.

    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

...'case' is broken for multi-byte characters. The following test script, when saved in UTF-8, outputs 'BUG' instead of 'ok':

case "ρ" in
( "ρ" )	echo ok ;;
( * )	echo BUG; exit 1 ;;
esac

--
||	modernish -- harness the shell
||	https://github.com/modernish/modernish
||
||	KornShell lives!
||	https://github.com/ksh93/ksh




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux