vim tutor support file

Pierre Habouzit pierre.habouzit@m4x.org
Tue, 15 Mar 2005 10:37:29 +0100


--nextPart4652640.OVuHn0Y2bU
Content-Type: multipart/mixed;
  boundary="Boundary-01=_azqNCpGR23mLPz2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_azqNCpGR23mLPz2
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I sent that to the tutor/tutor.vim maintainer, but his mailbox bounced,=20
so I post it to the list, hoping someone would take it into account.=20

Regards,
=2D------------------------------------------------------------------------=
=2D------




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=_azqNCpGR23mLPz2
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=_azqNCpGR23mLPz2--

--nextPart4652640.OVuHn0Y2bU
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCNqzavGr7W6HudhwRAu26AJ9y7arL9iZGvekhvTupQyn3OTA3hwCbBmOv
Fs2BR6iJl8ycbN7vXG1Ux/o=
=Ydk6
-----END PGP SIGNATURE-----

--nextPart4652640.OVuHn0Y2bU--