|
Karsten Hopp |
cb63cc |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
cb63cc |
Subject: Patch 7.3.276
|
|
Karsten Hopp |
cb63cc |
Fcc: outbox
|
|
Karsten Hopp |
cb63cc |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
cb63cc |
Mime-Version: 1.0
|
|
Karsten Hopp |
cb63cc |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
cb63cc |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
cb63cc |
------------
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
Patch 7.3.276
|
|
Karsten Hopp |
cb63cc |
Problem: GvimExt sets $LANG in the wrong way.
|
|
Karsten Hopp |
cb63cc |
Solution: Save the environment and use it for gvim. (Yasuhiro Matsumoto)
|
|
Karsten Hopp |
cb63cc |
Files: src/GvimExt/gvimext.cpp
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
*** ../vim-7.3.275/src/GvimExt/gvimext.cpp 2011-07-20 17:27:17.000000000 +0200
|
|
Karsten Hopp |
cb63cc |
--- src/GvimExt/gvimext.cpp 2011-08-10 16:25:32.000000000 +0200
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 142,147 ****
|
|
Karsten Hopp |
cb63cc |
--- 142,148 ----
|
|
Karsten Hopp |
cb63cc |
static int dyn_libintl_init(char *dir);
|
|
Karsten Hopp |
cb63cc |
static void dyn_libintl_end(void);
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
+ static wchar_t *oldenv = NULL;
|
|
Karsten Hopp |
cb63cc |
static HINSTANCE hLibintlDLL = 0;
|
|
Karsten Hopp |
cb63cc |
static char *(*dyn_libintl_gettext)(const char *) = null_libintl_gettext;
|
|
Karsten Hopp |
cb63cc |
static char *(*dyn_libintl_textdomain)(const char *) = null_libintl_textdomain;
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 339,346 ****
|
|
Karsten Hopp |
cb63cc |
inc_cRefThisDLL()
|
|
Karsten Hopp |
cb63cc |
{
|
|
Karsten Hopp |
cb63cc |
#ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
cb63cc |
! if (g_cRefThisDll == 0)
|
|
Karsten Hopp |
cb63cc |
dyn_gettext_load();
|
|
Karsten Hopp |
cb63cc |
#endif
|
|
Karsten Hopp |
cb63cc |
InterlockedIncrement((LPLONG)&g_cRefThisDll);
|
|
Karsten Hopp |
cb63cc |
}
|
|
Karsten Hopp |
cb63cc |
--- 340,349 ----
|
|
Karsten Hopp |
cb63cc |
inc_cRefThisDLL()
|
|
Karsten Hopp |
cb63cc |
{
|
|
Karsten Hopp |
cb63cc |
#ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
cb63cc |
! if (g_cRefThisDll == 0) {
|
|
Karsten Hopp |
cb63cc |
dyn_gettext_load();
|
|
Karsten Hopp |
cb63cc |
+ oldenv = GetEnvironmentStringsW();
|
|
Karsten Hopp |
cb63cc |
+ }
|
|
Karsten Hopp |
cb63cc |
#endif
|
|
Karsten Hopp |
cb63cc |
InterlockedIncrement((LPLONG)&g_cRefThisDll);
|
|
Karsten Hopp |
cb63cc |
}
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 349,356 ****
|
|
Karsten Hopp |
cb63cc |
dec_cRefThisDLL()
|
|
Karsten Hopp |
cb63cc |
{
|
|
Karsten Hopp |
cb63cc |
#ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
cb63cc |
! if (InterlockedDecrement((LPLONG)&g_cRefThisDll) == 0)
|
|
Karsten Hopp |
cb63cc |
dyn_gettext_free();
|
|
Karsten Hopp |
cb63cc |
#else
|
|
Karsten Hopp |
cb63cc |
InterlockedDecrement((LPLONG)&g_cRefThisDll);
|
|
Karsten Hopp |
cb63cc |
#endif
|
|
Karsten Hopp |
cb63cc |
--- 352,364 ----
|
|
Karsten Hopp |
cb63cc |
dec_cRefThisDLL()
|
|
Karsten Hopp |
cb63cc |
{
|
|
Karsten Hopp |
cb63cc |
#ifdef FEAT_GETTEXT
|
|
Karsten Hopp |
cb63cc |
! if (InterlockedDecrement((LPLONG)&g_cRefThisDll) == 0) {
|
|
Karsten Hopp |
cb63cc |
dyn_gettext_free();
|
|
Karsten Hopp |
cb63cc |
+ if (oldenv != NULL) {
|
|
Karsten Hopp |
cb63cc |
+ FreeEnvironmentStringsW(oldenv);
|
|
Karsten Hopp |
cb63cc |
+ oldenv = NULL;
|
|
Karsten Hopp |
cb63cc |
+ }
|
|
Karsten Hopp |
cb63cc |
+ }
|
|
Karsten Hopp |
cb63cc |
#else
|
|
Karsten Hopp |
cb63cc |
InterlockedDecrement((LPLONG)&g_cRefThisDll);
|
|
Karsten Hopp |
cb63cc |
#endif
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 905,912 ****
|
|
Karsten Hopp |
cb63cc |
NULL, // Process handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
NULL, // Thread handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
FALSE, // Set handle inheritance to FALSE.
|
|
Karsten Hopp |
cb63cc |
! 0, // No creation flags.
|
|
Karsten Hopp |
cb63cc |
! NULL, // Use parent's environment block.
|
|
Karsten Hopp |
cb63cc |
NULL, // Use parent's starting directory.
|
|
Karsten Hopp |
cb63cc |
&si, // Pointer to STARTUPINFO structure.
|
|
Karsten Hopp |
cb63cc |
&pi) // Pointer to PROCESS_INFORMATION structure.
|
|
Karsten Hopp |
cb63cc |
--- 913,920 ----
|
|
Karsten Hopp |
cb63cc |
NULL, // Process handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
NULL, // Thread handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
FALSE, // Set handle inheritance to FALSE.
|
|
Karsten Hopp |
cb63cc |
! oldenv == NULL ? 0 : CREATE_UNICODE_ENVIRONMENT,
|
|
Karsten Hopp |
cb63cc |
! oldenv, // Use unmodified environment block.
|
|
Karsten Hopp |
cb63cc |
NULL, // Use parent's starting directory.
|
|
Karsten Hopp |
cb63cc |
&si, // Pointer to STARTUPINFO structure.
|
|
Karsten Hopp |
cb63cc |
&pi) // Pointer to PROCESS_INFORMATION structure.
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 987,994 ****
|
|
Karsten Hopp |
cb63cc |
NULL, // Process handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
NULL, // Thread handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
FALSE, // Set handle inheritance to FALSE.
|
|
Karsten Hopp |
cb63cc |
! 0, // No creation flags.
|
|
Karsten Hopp |
cb63cc |
! NULL, // Use parent's environment block.
|
|
Karsten Hopp |
cb63cc |
NULL, // Use parent's starting directory.
|
|
Karsten Hopp |
cb63cc |
&si, // Pointer to STARTUPINFO structure.
|
|
Karsten Hopp |
cb63cc |
&pi) // Pointer to PROCESS_INFORMATION structure.
|
|
Karsten Hopp |
cb63cc |
--- 995,1002 ----
|
|
Karsten Hopp |
cb63cc |
NULL, // Process handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
NULL, // Thread handle not inheritable.
|
|
Karsten Hopp |
cb63cc |
FALSE, // Set handle inheritance to FALSE.
|
|
Karsten Hopp |
cb63cc |
! oldenv == NULL ? 0 : CREATE_UNICODE_ENVIRONMENT,
|
|
Karsten Hopp |
cb63cc |
! oldenv, // Use unmodified environment block.
|
|
Karsten Hopp |
cb63cc |
NULL, // Use parent's starting directory.
|
|
Karsten Hopp |
cb63cc |
&si, // Pointer to STARTUPINFO structure.
|
|
Karsten Hopp |
cb63cc |
&pi) // Pointer to PROCESS_INFORMATION structure.
|
|
Karsten Hopp |
cb63cc |
*** ../vim-7.3.275/src/version.c 2011-08-10 15:56:24.000000000 +0200
|
|
Karsten Hopp |
cb63cc |
--- src/version.c 2011-08-10 16:28:42.000000000 +0200
|
|
Karsten Hopp |
cb63cc |
***************
|
|
Karsten Hopp |
cb63cc |
*** 711,712 ****
|
|
Karsten Hopp |
cb63cc |
--- 711,714 ----
|
|
Karsten Hopp |
cb63cc |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
cb63cc |
+ /**/
|
|
Karsten Hopp |
cb63cc |
+ 276,
|
|
Karsten Hopp |
cb63cc |
/**/
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
--
|
|
Karsten Hopp |
cb63cc |
User: I'm having problems with my text editor.
|
|
Karsten Hopp |
cb63cc |
Help desk: Which editor are you using?
|
|
Karsten Hopp |
cb63cc |
User: I don't know, but it's version VI (pronounced: 6).
|
|
Karsten Hopp |
cb63cc |
Help desk: Oh, then you should upgrade to version VIM (pronounced: 994).
|
|
Karsten Hopp |
cb63cc |
|
|
Karsten Hopp |
cb63cc |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
cb63cc |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
cb63cc |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
cb63cc |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|