etc/skel/.zshrc: set file encoding to UTF8
authorMichael Prokop <mika@grml.org>
Fri, 26 Jan 2024 15:02:40 +0000 (16:02 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 26 Jan 2024 15:07:08 +0000 (16:07 +0100)
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

index 948fd37..91c2cf3 100644 (file)
@@ -332,7 +332,7 @@ fi
 #getanames ()  { perl -ne 'while ( m/a name="([^"]*)"/gc ) { print $1, "\n"; }' $* }
 #getforms ()   { perl -ne 'while ( m:(\</?(input|form|select|option).*?\>):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 *" }