Skip to content

win32: Use Wide API in vim_getenv() in misc1.c#4008

Closed
k-takata wants to merge 2 commits intovim:masterfrom
k-takata:use-wide-api-in-vim_getenv
Closed

win32: Use Wide API in vim_getenv() in misc1.c#4008
k-takata wants to merge 2 commits intovim:masterfrom
k-takata:use-wide-api-in-vim_getenv

Conversation

@k-takata
Copy link
Member

Currently, vim_getenv() cannot handle Unicode characters on Windows. E.g.:

:let $a='Ā'
:echo $a
?

This patch makes it possible by using Wide API:

:let $a='Ā'
:echo $a
Ā

Currently, `vim_getenv()` cannot handle Unicode characters on Windows. E.g.:

```
:let $a='Ā'
:echo $a
?
```

This patch makes it possible by using Wide API:

```
:let $a='Ā'
:echo $a
Ā
```
@mattn
Copy link
Member

mattn commented Feb 19, 2019

Looks good. 👍 Possibly this can be tested?

@mattn mattn mentioned this pull request Feb 19, 2019
@codecov-io
Copy link

Codecov Report

Merging #4008 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4008      +/-   ##
==========================================
+ Coverage   79.13%   79.15%   +0.01%     
==========================================
  Files         105      105              
  Lines      141111   141112       +1     
==========================================
+ Hits       111669   111693      +24     
+ Misses      29442    29419      -23
Impacted Files Coverage Δ
src/misc1.c 78.92% <100%> (ø) ⬆️
src/if_xcmdsrv.c 83.48% <0%> (-0.72%) ⬇️
src/ex_cmds2.c 84.89% <0%> (-0.1%) ⬇️
src/message.c 76.65% <0%> (+0.04%) ⬆️
src/window.c 83.59% <0%> (+0.06%) ⬆️
src/ui.c 50.22% <0%> (+0.07%) ⬆️
src/channel.c 83.16% <0%> (+0.07%) ⬆️
src/terminal.c 78.29% <0%> (+0.08%) ⬆️
src/gui.c 58.25% <0%> (+0.36%) ⬆️
src/gui_gtk_x11.c 48.96% <0%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbd854d...f216fa5. Read the comment docs.

@brammool brammool closed this in f0908e6 Mar 30, 2019
@k-takata k-takata deleted the use-wide-api-in-vim_getenv branch March 31, 2019 01:26
janlazo added a commit to janlazo/neovim that referenced this pull request Nov 7, 2019
…nment var

Problem:    MS-Windows: cannot use multi-byte chars in environment var.
Solution:   Use the wide API. (Ken Takata, closes vim/vim#4008)
vim/vim@f0908e6
janlazo added a commit to janlazo/neovim that referenced this pull request Nov 9, 2019
…nment var

Problem:    MS-Windows: cannot use multi-byte chars in environment var.
Solution:   Use the wide API. (Ken Takata, closes vim/vim#4008)
vim/vim@f0908e6
janlazo added a commit to janlazo/neovim that referenced this pull request Nov 9, 2019
…nment var

Problem:    MS-Windows: cannot use multi-byte chars in environment var.
Solution:   Use the wide API. (Ken Takata, closes vim/vim#4008)
vim/vim@f0908e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants