-
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
Translate fails to run on Windows #19
Comments
Actually, it's a bit more subtle as this works well with gvim-win32 + cygwin-bash + What I see is that it doesn't work at all when I revert my A quick and dirty patch would be to test BTW, if you change your |
Let me know if the fix does the job for you. |
If I trigger that command I get a
I'll try the same with |
With
|
Hum. I see we don't use the same settings for the shell options -- I've forfeited on the official standard ones 2 decades ago. Have you updated lh-vim-lib to use the latest version? I've tried to address a few issues. Even with shell==cmd, hopefully it should works (as long as it was already possible to run |
Here is the error message I got when I run:
Here is the error message I got with the new version when I try to decode a trace (WTF)
|
I have uninstalled Thanks for the support. |
Unfortunately I don't have WSL/2 installed on my machines. I'll try to come up with a command file to execute from DOS console in a first time to see whether the problem comes from executing WSL2's bash from the command file or executing the command file with standard Vim settings for the &shell options. Also, your Vim seems to be in English, I should be able to detect that and completely shortcut the localization of the messages. I'll see what I can do. |
Thanks for the update. If you have something I'll be glad to test. Do I understand correctly that Vim use the shell to translate its messages? Why do we need to run a shell command to get the translation? |
That's the only way I've found to translate messages from the .po files -- without requiring to install 3rd party executables. I guess I could have used python... hum... |
Would you mind trying to execute the following @echo off
set LANG=fr_FR.UTF-8
set TEXTDOMAINDIR=C:\Progra~1\dev\Vim\vim81/lang
set TEXTDOMAIN=vim
bash -c 'echo $"[Quickfix List]"' You'll have to replace the TEXTDOMAINDIR with the If this works, the next step would be to execute it from Vim with " Expecting &shell to be cmd
:echo system('test-po-translate.cmd') |
I'll do that. I have to reinstall WSL it will take me a bit of time. I hope to complete it over the weekend. |
One difficulty I see is that bash is running in WSL but Vim is running in Windows (in WSL you could have Vim or not or not the same version than in Windows) |
Take your time, I'm the on who should be thanking you for your time and feedbacks. I haven't had the opportunity to use WSL yet. So far, I've struggled plenty to make gvim-win32 works when launched from Cygwin (there are quite a few issues related to pathname conversion). (I did not know it was possible to directly run a WSL executable from a windows executable. I imagined it to be completely isolated, and to require specific proxy commands (like a |
I made two experiments: within WSL:After running the
Output:
within cmd:Within a windows shell (
Output:
|
While it doesn't seem to crash (which is a good start), it doesn't seem to work either (as the messages isn't translated into French :/) |
How could I verify that the translation are correctly installed on the two systems. I'm a bit surprised that the first test fails since it should be a "pure" Linux system. I can start vim 8.2 on that system correctly. |
In $VIMRUNTIME, there should be a I read shopt value may impact the required quote characters: https://www.gnu.org/software/bash/manual/html_node/Locale-Translation.html |
The files are there but translation doesn't seems to work :-/ |
I'm running on Windows 10 and
bash
is available on my system.When the library is running on my system any call to translate launch a process of the kind:
That doesn't return.
To solve the problem I have disabled the translation for
win32
systems:Let me know if you would be interested by a Pull Request.
The text was updated successfully, but these errors were encountered: