tag:help.appveyor.com,2012-11-13:/discussions/problems/16715-appveyor-had-the-problem-with-git-branch-name-by-unicodeAppVeyor: Discussion 2019-06-27T05:27:34Ztag:help.appveyor.com,2012-11-13:Comment/460753752018-11-21T21:02:51Z2018-11-21T21:05:39ZAppVeyor had the problem with git branch name by Unicode <div><p>TLDR: Use command line <code>control intl.cpl,, /f:"%APPVEYOR_BUILD_FOLDER%\locale.xml"</code>, where locale.xml is</p>
<pre>
<code><gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>
</gs:UserList>
<!-- system locale --><gs:SystemLocale Name="en-US" />
</gs:GlobalizationServices></code>
</pre>
<p>where <code>en-US</code> is locale in which your branch name is set.</p>
<p>This bug is due to non-set setting "default language for non-unicode programs". When this setting is not set, programs that does not use Windows unicode variant* or not use unicode at all produce files with corrupted filenames. And since git branch is just file (in <code>.git</code> hidden folder) where filename is branch name, this setting affects git as well.</p>
<p>After this settings is set in control panel, computer must be rebooted. In 2018 this is not problem in AppVeyor (<code>powershell Reboot-Computer</code> does the trick). Actual problem is that command used to programmatically change this setting (<code>powershell Set-WinSystemLocale</code>) hangs on AppVeyor.</p>
<p>So you need to programmatically communicate with <code>Control Panel</code>, and there is <code>control</code> tool for that mentioned in TLDR.</p>
<p>*UTF-16, as far as I know</p></div>galeksandrptag:help.appveyor.com,2012-11-13:Comment/460753752018-11-22T01:12:25Z2018-11-22T01:12:25ZAppVeyor had the problem with git branch name by Unicode <div><p>Thanks for your explanation.<br>
I chose Linux based to build the project.</p></div>lb.thanh