MantisBT - CMake
View Issue Details
0013880CMakeCMakepublic2013-01-25 14:402015-06-01 08:38
David Rosen 
Clinton Stimpson 
normalmajoralways
closedfixed 
PCWindows7
CMake 2.8.10.2 
CMake 3.2 
0013880: CMake GUI browser cannot handle Unicode paths
The CMake GUI browser fails to interpret or preserve file paths that contain unicode characters on Windows.
Open the CMake GUI and choose "Browse Source..." and select a directory that contains unicode characters, such as "TestWXY►ΦΦΘΩδ▲ ↔". It will appear in the text field as "TestWXY?FFTOd? ?", and it will be unable to read or write files from that folder.
Perhaps it is assuming that the C standard library functions use UTF-8, when they really only support ASCII or UTF-16.
No tags attached.
Issue History
2013-01-25 14:40David RosenNew Issue
2013-01-26 01:34David RosenNote Added: 0032168
2014-04-13 08:09don brightNote Added: 0035683
2015-01-16 10:14Clinton StimpsonAssigned To => Clinton Stimpson
2015-01-16 10:14Clinton StimpsonStatusnew => assigned
2015-01-16 10:14Clinton StimpsonNote Added: 0037718
2015-01-16 10:14Clinton StimpsonStatusassigned => resolved
2015-01-16 10:14Clinton StimpsonFixed in Version => CMake 3.2
2015-01-16 10:14Clinton StimpsonResolutionopen => fixed
2015-06-01 08:38Robert MaynardNote Added: 0038844
2015-06-01 08:38Robert MaynardStatusresolved => closed

Notes
(0032168)
David Rosen   
2013-01-26 01:34   
Upon further investigation it appears that the problem occurs using the command-line interface as well.
(0035683)
don bright   
2014-04-13 08:09   
Confirmed on Windows 7.

How to reproduce.

Find a simple CMake project, like https://github.com/jameskbride/cmake-hello-world [^] and clone or copy it under a directory named

      c:\temp\ффф\helloworld

Now try to use that directory as the Source directory in the Cmake GUI. It will display an error message.

Now, go to start, type cmd to open a console, then

      cd c:\temp\ффф\helloworld
      cmake .

An error will be produced

      the source directory" c:\temp\???\helloworld does not exist
(0037718)
Clinton Stimpson   
2015-01-16 10:14   
Fixed by switching to utf-8 internally.
http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=cdc29c3 [^]
(0038844)
Robert Maynard   
2015-06-01 08:38   
Closing resolved issues that have not been updated in more than 4 months.