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

Cannot create a shortcut including unicode characters in AppVeyor environment #15

Open
kai2nenobu opened this issue Mar 4, 2018 · 0 comments

Comments

@kai2nenobu
Copy link
Owner

AppVeyorでのテスト時に chocolatey で日本語を含むファイル名でショートカットを作ろうとすると失敗する。https://ci.appveyor.com/project/kai2nenobu/chocolatey-packages/build/0.0.1.126

WARNING: Unable to create shortcut. Error captured was Unable to save shortcut "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\??????????! (MAPE).lnk"..

軽く調べると chcp 65001 でコードページをUnicodeにすればいいという情報はあった。
https://help.appveyor.com/discussions/problems/6245-unicode-characters-show-as-in-build-output

ということで chcp 65001appveyor.yml のスクリプトの冒頭と、自作のテストスクリプトの先頭に入れてみたが、AppVeyorのログで日本語が表示できるようにはなったけど肝心のショートカットの作成自体は失敗している。

ちゃんとコードページは65001に変更はされているみたいなので、chocolateyのショートカット作成ヘルパー自体の問題かもしれない。

そもそもショートカットの作成に失敗してるのにインストールスクリプトの実行が成功扱いになっているのがよくわからん。

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

No branches or pull requests

1 participant