vim tutor support file
Pierre Habouzit
pierre.habouzit@m4x.org
Tue, 15 Mar 2005 10:32:39 +0100
--nextPart1623966.aUc5N6BSj4
Content-Type: multipart/mixed;
boundary="Boundary-01=_3uqNCKIsIYDmYng"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-01=_3uqNCKIsIYDmYng
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, I'm one of the debian VIM packaging crew.
We have a user that complained for vimtutor not respecting usual=20
LC_ALL/LC_MESSAGE/... semantics (see http://bugs.debian.org/289113)
attached is a patch that corrects the issue, and that will be included=20
in our next vim upload.
Cheers,
=2D-=20
=B7O=B7 Pierre Habouzit
=B7=B7O
OOO http://www.madism.org
--Boundary-01=_3uqNCKIsIYDmYng
Content-Type: text/x-diff;
charset="iso-8859-15";
name="105_tutor.vim.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="105_tutor.vim.diff"
diff -Nrua vim63.orig/runtime/tutor/tutor.vim vim63/runtime/tutor/tutor.vim
--- vim63.orig/runtime/tutor/tutor.vim 2005-03-15 10:18:48.846942561 +0100
+++ vim63/runtime/tutor/tutor.vim 2005-03-15 10:24:37.470087403 +0100
@@ -15,10 +15,17 @@
let s:ext = "." . $xx
else
let s:lang = ""
- if exists("v:lang") && v:lang != "C"
+ if exists("v:lang")
let s:lang = v:lang
- elseif strlen($LANG) > 0 && $LANG != "C"
+ elseif strlen($LC_MESSAGES) > 0
let s:lang = $LANG
+ elseif strlen($LC_ALL) > 0
+ let s:lang = $LANG
+ elseif strlen($LANG) > 0
+ let s:lang = $LANG
+ endif
+ if s:lang == "C"
+ let s:lang=""
endif
if s:lang != ""
" Remove "@euro" (ignoring case), it may be at the end
--Boundary-01=_3uqNCKIsIYDmYng--
--nextPart1623966.aUc5N6BSj4
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBCNqu3vGr7W6HudhwRAotIAJwMU+OBBtSWsoK91knPZR3wfD+BjQCfcdqL
gcU0Req6t4ZKudcReQfY7Ds=
=KSCV
-----END PGP SIGNATURE-----
--nextPart1623966.aUc5N6BSj4--