Skip to content
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

not support windows system with chinese language #12

Open
barnettZQG opened this issue Feb 19, 2020 · 1 comment
Open

not support windows system with chinese language #12

barnettZQG opened this issue Feb 19, 2020 · 1 comment

Comments

@barnettZQG
Copy link

not support windows system with chinese language.

PS C:\k> netsh interface ipv4 show addresses

接口 "vEthernet (以太网)" 的配置
    DHCP 已启用:                          是
    IP 地址:                           172.24.203.207
    子网前缀:                        172.24.192.0/20 (掩码 255.255.240.0)
    默认网关:                         172.24.207.253
    网关跃点数:                       0
    InterfaceMetric:                      15

接口 "Loopback Pseudo-Interface 1" 的配置
    DHCP 已启用:                          否
    IP 地址:                           127.0.0.1
    子网前缀:                        127.0.0.0/8 (掩码 255.0.0.0)
    InterfaceMetric:                      75

接口 "vEthernet (nat)" 的配置
    DHCP 已启用:                          否
    IP 地址:                           172.26.16.1
    子网前缀:                        172.26.16.0/20 (掩码 255.255.240.0)
    InterfaceMetric:                      5000
@wayne-cheng
Copy link

Not only with Chinese language, but this problem also occurs with other non-English languages. I think running chcp 65001 before executing netsh would be a easy way to fix this. I'd like to submit a PR to fix the issue @rakelkar .

Additionally, the project Calico also depends on this gonetsh. The change will be very useful for adapting it to Windows Server systems in various languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants