View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012074 | CMake | CMake | public | 2011-04-13 02:48 | 2015-06-01 08:38 | ||||
Reporter | zouguangxian | ||||||||
Assigned To | Clinton Stimpson | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | Windows | OS Version | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | CMake 3.2 | |||||||
Summary | 0012074: "Could not copy from" On Windows 7 (Simplified Chinese) | ||||||||
Description | When run cmake on Windows 7 (Simplified Chinese), cmake always report "Could not copy from" if the current user name include chinese characteres. | ||||||||
Additional Information | This 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(); .... } | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |||||||||||
|
Relationships |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |