MantisBT - CMake
View Issue Details
0014934CMake(No Category)public2014-05-25 20:352015-01-05 08:38
V字龍(Vdragon) 
 
normalminoralways
closedfixed 
GNU/LinuxUbuntu 14.04LTS i386
CMake 2.8.12.2 
CMake 3.1 
0014934: archive_write_header: Can't translate pathname 'bin/教學程式' to UTF-8
I met this issue when trying CMake official tutorial(www.cmake.org/cmake/help/cmake_tutorial.html) step 6, instead of using the provided source code directly I slightly modified it to contain some Traditional Chinese strings and filenames.

As my environmnet is indeed UTF-8 (zh_TW.UTF8), I expected this kind of error won't happen.
1. extract the content of Step6.zip
2. execute `cmake .`, `make` and `cpack -C CPackConfig.cmake` in Step6/
CharacterSet, CPACK, filename, linux, Unicode
zip Step6.zip (8,170) 2014-05-25 20:35
https://public.kitware.com/Bug/file/5152/Step6.zip
Issue History
2014-05-25 20:35V字龍(Vdragon)New Issue
2014-05-25 20:35V字龍(Vdragon)File Added: Step6.zip
2014-05-25 20:55V字龍(Vdragon)Tag Attached: CharacterSet
2014-05-25 20:55V字龍(Vdragon)Tag Attached: CPACK
2014-05-25 20:55V字龍(Vdragon)Tag Attached: filename
2014-05-25 20:55V字龍(Vdragon)Tag Attached: linux
2014-05-25 20:55V字龍(Vdragon)Tag Attached: Unicode
2014-05-25 21:02V字龍(Vdragon)Note Added: 0035928
2014-05-27 08:44Brad KingNote Added: 0035938
2014-05-27 08:44Brad KingStatusnew => backlog
2014-05-27 08:47V字龍(Vdragon)Note Added: 0035939
2014-05-27 19:24Clinton StimpsonNote Added: 0035951
2014-06-04 21:58Clinton StimpsonNote Added: 0036122
2014-06-04 21:58Clinton StimpsonStatusbacklog => resolved
2014-06-04 21:58Clinton StimpsonResolutionopen => fixed
2014-06-04 21:58Clinton StimpsonFixed in Version => CMake 3.1
2015-01-05 08:38Robert MaynardNote Added: 0037560
2015-01-05 08:38Robert MaynardStatusresolved => closed

Notes
(0035928)
V字龍(Vdragon)   
2014-05-25 21:02   
In order to workaround this issue I need to:
1. change top-level CMakeLists.txt:2 to "project (\"something pure ASCII\")"
2. replace all "教學程式" in top-level CMakeLists.txt to "Tutorial"
(0035938)
Brad King   
2014-05-27 08:44   
There has been some work to support international characters but currently CMake does not support them.
(0035939)
V字龍(Vdragon)   
2014-05-27 08:47   
@Brad King
Thanks for pointing it out! I'll just avoid them until this bug is fixed.
(0035951)
Clinton Stimpson   
2014-05-27 19:24   
Adding a setlocale() in main() will fix this on Linux.
(0036122)
Clinton Stimpson   
2014-06-04 21:58   
Fixed here for linux.
http://cmake.org/gitweb?p=cmake.git;a=commit;h=730e386 [^]
(0037560)
Robert Maynard   
2015-01-05 08:38   
Closing resolved issues that have not been updated in more than 4 months.