View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014934CMake(No Category)public2014-05-25 20:352015-01-05 08:38
ReporterV字龍(Vdragon) 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformGNU/LinuxOSUbuntu OS Version14.04LTS i386
Product VersionCMake 2.8.12.2 
Target VersionFixed in VersionCMake 3.1 
Summary0014934: archive_write_header: Can't translate pathname 'bin/教學程式' to UTF-8
DescriptionI 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.
Steps To Reproduce1. extract the content of Step6.zip
2. execute `cmake .`, `make` and `cpack -C CPackConfig.cmake` in Step6/
TagsCharacterSet, CPACK, filename, linux, Unicode
Attached Fileszip file icon Step6.zip [^] (8,170 bytes) 2014-05-25 20:35

 Relationships

  Notes
(0035928)
V字龍(Vdragon) (reporter)
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 (manager)
2014-05-27 08:44

There has been some work to support international characters but currently CMake does not support them.
(0035939)
V字龍(Vdragon) (reporter)
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 (developer)
2014-05-27 19:24

Adding a setlocale() in main() will fix this on Linux.
(0036122)
Clinton Stimpson (developer)
2014-06-04 21:58

Fixed here for linux.
http://cmake.org/gitweb?p=cmake.git;a=commit;h=730e386 [^]
(0037560)
Robert Maynard (manager)
2015-01-05 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-05-25 20:35 V字龍(Vdragon) New Issue
2014-05-25 20:35 V字龍(Vdragon) File Added: Step6.zip
2014-05-25 20:55 V字龍(Vdragon) Tag Attached: CharacterSet
2014-05-25 20:55 V字龍(Vdragon) Tag Attached: CPACK
2014-05-25 20:55 V字龍(Vdragon) Tag Attached: filename
2014-05-25 20:55 V字龍(Vdragon) Tag Attached: linux
2014-05-25 20:55 V字龍(Vdragon) Tag Attached: Unicode
2014-05-25 21:02 V字龍(Vdragon) Note Added: 0035928
2014-05-27 08:44 Brad King Note Added: 0035938
2014-05-27 08:44 Brad King Status new => backlog
2014-05-27 08:47 V字龍(Vdragon) Note Added: 0035939
2014-05-27 19:24 Clinton Stimpson Note Added: 0035951
2014-06-04 21:58 Clinton Stimpson Note Added: 0036122
2014-06-04 21:58 Clinton Stimpson Status backlog => resolved
2014-06-04 21:58 Clinton Stimpson Resolution open => fixed
2014-06-04 21:58 Clinton Stimpson Fixed in Version => CMake 3.1
2015-01-05 08:38 Robert Maynard Note Added: 0037560
2015-01-05 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team