Currently expr provided by coreutils is unable to handle special chars (like å for example). Reproducible: Always Steps to Reproduce: Some examples: expr substr "abcde" 5 1: Returns e (as expected) expr substr "abcåe" 5 1: Returns � (expected was e) locales: LANG=en_US.UTF-8 LC_CTYPE=da_DK.UTF-8 shell=bash coreutils-7.1
coreutils-7.1 doesnt have any unicode/etc... patches, so it's expected to not work currently. dont try and use unicode and such and it'll work fine.
ive added the patch from fedora behind USE=unicode http://sources.gentoo.org/gentoo/src/patchsets/coreutils/8.2/000_all_coreutils-i18n.patch?rev=1.1