From: Michael Prokop Date: Fri, 26 Jan 2024 15:02:40 +0000 (+0100) Subject: etc/skel/.zshrc: set file encoding to UTF8 X-Git-Tag: v0.19.7~2^2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=ae34c4279494e5894e6ee7915fd420fc10798661 etc/skel/.zshrc: set file encoding to UTF8 The file isn't properly encoded and claims to be latin1. Convert to UTF8 to avoid broken characters in getanchors(). Thanks: flobee for the bug report Closes: https://github.com/grml/grml-etc-core/issues/155 --- diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 948fd37..91c2cf3 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -332,7 +332,7 @@ fi #getanames () { perl -ne 'while ( m/a name="([^"]*)"/gc ) { print $1, "\n"; }' $* } #getforms () { perl -ne 'while ( m:(\):gic ) { print $1, "\n"; }' $* } #getstrings () { perl -ne 'while ( m/"(.*?)"/gc ) { print $1, "\n"; }' $*} -#getanchors () { perl -ne 'while ( m/«([^«»\n]+)»/gc ) { print $1, "\n"; }' $* } +#getanchors () { perl -ne 'while ( m/«([^«»\n]+)»/gc ) { print $1, "\n"; }' $* } #showINC () { perl -e 'for (@INC) { printf "%d %s\n", $i++, $_ }' } #vimpm () { vim `perldoc -l $1 | sed -e 's/pod$/pm/'` } #vimhelp () { vim -c "help $1" -c on -c "au! VimEnter *" }