-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
エクスプローラのコンテキストメニューの項目が日本語表示されない #808
Comments
関連todo
あとは #508 も。 |
最新ナイトリービルドの、 原因:
|
ディレクトリ直指定は1個でいいかな。 diff --git a/src/GvimExt/gvimext.cpp b/src/GvimExt/gvimext.cpp
index e644443..81d4cfc 100644
--- a/src/GvimExt/gvimext.cpp
+++ b/src/GvimExt/gvimext.cpp
@@ -158,6 +158,7 @@ HBITMAP IconToBitmap(HICON hIcon, HBRUSH hBackground, int width, int height)
# define VIMPACKAGE "vim"
# ifndef GETTEXT_DLL
# define GETTEXT_DLL "libintl.dll"
+# define GETTEXT_DLL_ALT "libintl-8.dll"
# endif
// Dummy functions
@@ -206,6 +207,10 @@ dyn_libintl_init(char *dir)
if (!hLibintlDLL)
{
hLibintlDLL = LoadLibrary(GETTEXT_DLL);
+#ifdef GETTEXT_DLL_ALT
+ if (!hLibintlDLL)
+ hLibintlDLL = LoadLibrary(GETTEXT_DLL_ALT);
+#endif
if (!hLibintlDLL)
return 0;
} |
残念ながらそれでは不十分なのです。 |
どの件でしょうか? |
これです。
現象の説明としては、以下が分かりやすいですね。 gvimext.dll は、explorer.exe (あるいは同様のファイラー等) のプロセスで動くので、DLLの検索パスには、gvim.exe のあるディレクトリは含まれない点がはまりどころです。 |
なるほど。パッチお願いします。 |
このパッチを投げました。 |
64bit Windowsで日本語表示されない問題は、32bit版の問題が修正されてからレポート予定。 |
7.4.1383 |
Related: k-takata/vim-win32-installer#1 |
gvimext.dll の 32/64bit版両方をインストールするようにするパッチ。 インストール後のディレクトリ構成はこんな感じ。
|
iconvとgettextのDLLが2種類、3セットインストールされるのはビミョーな感じがしますが、32bitインストーラ、32bit/64bit zipパッケージのどれでも同じように動かせるようにするには、こうするのが一番楽かなと思います。 |
Posted: vim/vim#2144 |
todo listed: vim/vim@24a98a0#diff-38d7929bd26d74d92ceddf984bbfc8dbR38
|
Fixed by 8.0.1191 |
64bit版Windowsに、公式のインストーラでVimをインストールすると、エクスプローラの右クリックメニューで表示される "Edit with Vim" などの項目が日本語表示されません。
(32bit Windowsであれば問題ありません。)
原因:
インストーラでインストールされるVimは32bit版であり、同梱されているgettextのDLLも32bit版である。
一方、64bit Windowsでは、右クリックメニューの項目表示を行うgvimext.dllは、64bit版がインストールされる。
gvimext.dllは日本語表示を行うためにgettextをロードしようとするが、DLLは32bit版であるためロードできず、日本語表示できない。
The text was updated successfully, but these errors were encountered: