View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012074CMakeCMakepublic2011-04-13 02:482015-06-01 08:38
Reporterzouguangxian 
Assigned ToClinton Stimpson 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSWindowsOS Version
Product Version 
Target VersionFixed in VersionCMake 3.2 
Summary0012074: "Could not copy from" On Windows 7 (Simplified Chinese)
DescriptionWhen run cmake on Windows 7 (Simplified Chinese), cmake always report "Could not copy from" if the current user name include chinese characteres.

Additional InformationThis problem will be fixed via add "std::locale::global(std::locale(""));", for example, in cmake.cxx, change the main function to

int main(int ac, char** av)
{
  std::locale::global(std::locale(""));
  cmSystemTools::EnableMSVCDebugHook();
  ....
}
TagsNo tags attached.
Attached Files

 Relationships
related to 0010180closedClinton Stimpson CMake won't generate Visual Studio projects with working paths that have Unicode charactors 
related to 0012075closedClinton Stimpson generated .vcproj with wrong encoding 

  Notes
(0028706)
zouguangxian (reporter)
2012-02-23 21:27

It is duplication of 0010180.
(0028710)
Brad King (manager)
2012-02-24 08:40

The proposed fix will set the locale for all streams including those that are used to read and copy the content of files. However CMake currently does not define or understand character encoding for its input files and is not able to handle files containing anything except 7-bit ASCII characters. (CTest knows how to handle UTF-8 encoded test output, but that is separate.)

I'm not prepared to make this change without a full patch for internationalization along with tests and documentation. It will probably have to be discussed on the developer's list:

  http://www.cmake.org/mailman/listinfo/cmake-developers [^]

(0028852)
zouguangxian (reporter)
2012-03-07 02:43

There is a article title with "
Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio"

http://www.nubaria.com/en/blog/?p=289 [^]
(0028853)
zouguangxian (reporter)
2012-03-07 02:46

Please refer to http://www.joelonsoftware.com/articles/Unicode.html [^] also
"The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
by Joel Spolsky"
(0037716)
Clinton Stimpson (developer)
2015-01-16 10:12

Fixed by switching to utf-8 internally.
http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=cdc29c3 [^]
(0038842)
Robert Maynard (manager)
2015-06-01 08:38

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

 Issue History
Date Modified Username Field Change
2011-04-13 02:48 zouguangxian New Issue
2012-02-23 21:27 zouguangxian Note Added: 0028706
2012-02-24 08:29 Brad King Relationship added related to 0010180
2012-02-24 08:30 Brad King Relationship added related to 0012075
2012-02-24 08:40 Brad King Note Added: 0028710
2012-02-24 08:40 Brad King Status new => backlog
2012-03-07 02:43 zouguangxian Note Added: 0028852
2012-03-07 02:46 zouguangxian Note Added: 0028853
2015-01-15 23:41 Clinton Stimpson Assigned To => Clinton Stimpson
2015-01-15 23:41 Clinton Stimpson Status backlog => assigned
2015-01-16 10:12 Clinton Stimpson Note Added: 0037716
2015-01-16 10:12 Clinton Stimpson Status assigned => resolved
2015-01-16 10:12 Clinton Stimpson Fixed in Version => CMake 3.2
2015-01-16 10:12 Clinton Stimpson Resolution open => fixed
2015-06-01 08:38 Robert Maynard Note Added: 0038842
2015-06-01 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team