|
Karsten Hopp |
2356d0 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2356d0 |
Subject: Patch 7.3.457
|
|
Karsten Hopp |
2356d0 |
Fcc: outbox
|
|
Karsten Hopp |
2356d0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2356d0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
2356d0 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2356d0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2356d0 |
------------
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
Patch 7.3.457
|
|
Karsten Hopp |
2356d0 |
Problem: When setting $VIMRUNTIME later the directory for fetching
|
|
Karsten Hopp |
2356d0 |
translated messages is not adjusted.
|
|
Karsten Hopp |
2356d0 |
Solution: Put bindtextdomain() in vim_setenv().
|
|
Karsten Hopp |
2356d0 |
Files: src/misc1.c
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
*** ../vim-7.3.456/src/misc1.c 2012-02-05 22:05:44.000000000 +0100
|
|
Karsten Hopp |
2356d0 |
--- src/misc1.c 2012-02-26 13:27:28.000000000 +0100
|
|
Karsten Hopp |
2356d0 |
***************
|
|
Karsten Hopp |
2356d0 |
*** 4133,4149 ****
|
|
Karsten Hopp |
2356d0 |
{
|
|
Karsten Hopp |
2356d0 |
vim_setenv((char_u *)"VIMRUNTIME", p);
|
|
Karsten Hopp |
2356d0 |
didset_vimruntime = TRUE;
|
|
Karsten Hopp |
2356d0 |
- #ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
2356d0 |
- {
|
|
Karsten Hopp |
2356d0 |
- char_u *buf = concat_str(p, (char_u *)"/lang");
|
|
Karsten Hopp |
2356d0 |
-
|
|
Karsten Hopp |
2356d0 |
- if (buf != NULL)
|
|
Karsten Hopp |
2356d0 |
- {
|
|
Karsten Hopp |
2356d0 |
- bindtextdomain(VIMPACKAGE, (char *)buf);
|
|
Karsten Hopp |
2356d0 |
- vim_free(buf);
|
|
Karsten Hopp |
2356d0 |
- }
|
|
Karsten Hopp |
2356d0 |
- }
|
|
Karsten Hopp |
2356d0 |
- #endif
|
|
Karsten Hopp |
2356d0 |
}
|
|
Karsten Hopp |
2356d0 |
else
|
|
Karsten Hopp |
2356d0 |
{
|
|
Karsten Hopp |
2356d0 |
--- 4133,4138 ----
|
|
Karsten Hopp |
2356d0 |
***************
|
|
Karsten Hopp |
2356d0 |
*** 4221,4226 ****
|
|
Karsten Hopp |
2356d0 |
--- 4210,4231 ----
|
|
Karsten Hopp |
2356d0 |
putenv((char *)envbuf);
|
|
Karsten Hopp |
2356d0 |
}
|
|
Karsten Hopp |
2356d0 |
#endif
|
|
Karsten Hopp |
2356d0 |
+ #ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
2356d0 |
+ /*
|
|
Karsten Hopp |
2356d0 |
+ * When setting $VIMRUNTIME adjust the directory to find message
|
|
Karsten Hopp |
2356d0 |
+ * translations to $VIMRUNTIME/lang.
|
|
Karsten Hopp |
2356d0 |
+ */
|
|
Karsten Hopp |
2356d0 |
+ if (*val != NUL && STRICMP(name, "VIMRUNTIME") == 0)
|
|
Karsten Hopp |
2356d0 |
+ {
|
|
Karsten Hopp |
2356d0 |
+ char_u *buf = concat_str(val, (char_u *)"/lang");
|
|
Karsten Hopp |
2356d0 |
+
|
|
Karsten Hopp |
2356d0 |
+ if (buf != NULL)
|
|
Karsten Hopp |
2356d0 |
+ {
|
|
Karsten Hopp |
2356d0 |
+ bindtextdomain(VIMPACKAGE, (char *)buf);
|
|
Karsten Hopp |
2356d0 |
+ vim_free(buf);
|
|
Karsten Hopp |
2356d0 |
+ }
|
|
Karsten Hopp |
2356d0 |
+ }
|
|
Karsten Hopp |
2356d0 |
+ #endif
|
|
Karsten Hopp |
2356d0 |
}
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
#if defined(FEAT_CMDL_COMPL) || defined(PROTO)
|
|
Karsten Hopp |
2356d0 |
*** ../vim-7.3.456/src/version.c 2012-02-22 19:13:00.000000000 +0100
|
|
Karsten Hopp |
2356d0 |
--- src/version.c 2012-02-29 13:47:09.000000000 +0100
|
|
Karsten Hopp |
2356d0 |
***************
|
|
Karsten Hopp |
2356d0 |
*** 716,717 ****
|
|
Karsten Hopp |
2356d0 |
--- 716,719 ----
|
|
Karsten Hopp |
2356d0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2356d0 |
+ /**/
|
|
Karsten Hopp |
2356d0 |
+ 457,
|
|
Karsten Hopp |
2356d0 |
/**/
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
--
|
|
Karsten Hopp |
2356d0 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
2356d0 |
118. You are on a first-name basis with your ISP's staff.
|
|
Karsten Hopp |
2356d0 |
|
|
Karsten Hopp |
2356d0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2356d0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2356d0 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2356d0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|