On Thu, Feb 6, 2014 at 2:07 PM, Volker Braun <vbraun.n...@gmail.com> wrote:
> This works for me on Fedora 20. Something must be wrong with your sed. What
> do you get for
>
> $ rpm -qf `which sed`
> sed-4.2.2-5.fc20.x86_64
> $ rpm -V sed
> $ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 | sed 's/[^0-9a-f].*//'
> 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3

Same sed version. Found the culprit:

$ echo $LC_COLLATE
nn_NO.utf8
$ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 | sed 's/[^0-9a-f].*//'
5b5e732cd1e
$ unset LC_COLLATE
$ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 | sed 's/[^0-9a-f].*//'
5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3

(Have LC_COLLATE set to get proper sorting of files containing
norwegian characters...)

Thanks!
-- 
Vegard

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to