From ae34c4279494e5894e6ee7915fd420fc10798661 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 26 Jan 2024 16:02:40 +0100 Subject: [PATCH] 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 --- etc/skel/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *" } -- 2.1.4