View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0010519 | CMake | CMake | public | 2010-04-08 08:19 | 2015-01-05 08:39 | ||||
Reporter | Vladislav Vaintroub | ||||||||
Assigned To | Clinton Stimpson | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||||||
Summary | 0010519: FILE(STRINGS) does not work correctly for UTF8 encoded strings | ||||||||
Description | I have a file which is UTF8 encoded . It contains mostly ASCII, but there is a greek PI literal there as well). I read the file contents with FILE(STRINGS) The string containing PI is read incorrectly (I only get the contents after PI, not before it). | ||||||||
Additional Information | Attached is a reproducible case. After unzipping bug.zip, run it with cmake -P bug.cmake It loads a string from example.sql and prints it to stdout. Only part of original string is shown. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | bug.zip [^] (614 bytes) 2010-04-08 08:19 | ||||||||
Relationships | |
Relationships |
Notes | |
(0020104) Vladislav Vaintroub (reporter) 2010-04-08 08:20 |
tried it on Windows only, don't know if problem exist anywhere else. |
(0030557) Brad King (manager) 2012-08-13 10:44 |
Sending issues I'm not actively working on to the backlog to await someone with time for them. If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on. |
(0036543) Clinton Stimpson (developer) 2014-08-04 10:28 edited on: 2014-08-04 10:56 |
cmFileCommand: Add ENCODING option to file(STRINGS ...) http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8157cb2e [^] Is that enough to resolve this bug, and wait for someone else to request utf-16/utf-32? |
(0036560) Brad King (manager) 2014-08-06 09:24 |
Re 0010519:0036543: Revised version of the commit: file: Add ENCODING option to file(STRINGS) command http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5b30ec28 [^] Yes, I think this resolves the issue. |
(0037609) Robert Maynard (manager) 2015-01-05 08:39 |
Closing resolved issues that have not been updated in more than 4 months |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-04-08 08:19 | Vladislav Vaintroub | New Issue | |
2010-04-08 08:19 | Vladislav Vaintroub | File Added: bug.zip | |
2010-04-08 08:20 | Vladislav Vaintroub | Note Added: 0020104 | |
2010-04-08 12:35 | Bill Hoffman | Status | new => assigned |
2010-04-08 12:35 | Bill Hoffman | Assigned To | => Brad King |
2012-08-13 10:44 | Brad King | Status | assigned => backlog |
2012-08-13 10:44 | Brad King | Note Added: 0030557 | |
2014-08-04 10:28 | Clinton Stimpson | Note Added: 0036543 | |
2014-08-04 10:56 | Brad King | Assigned To | Brad King => Clinton Stimpson |
2014-08-04 10:56 | Brad King | Status | backlog => assigned |
2014-08-04 10:56 | Brad King | Note Edited: 0036543 | |
2014-08-06 09:24 | Brad King | Note Added: 0036560 | |
2014-08-06 09:25 | Brad King | Status | assigned => resolved |
2014-08-06 09:25 | Brad King | Resolution | open => fixed |
2014-08-06 09:25 | Brad King | Fixed in Version | => CMake 3.1 |
2014-08-06 09:25 | Brad King | Target Version | => CMake 3.1 |
2014-08-06 09:25 | Brad King | Additional Information Updated | |
2015-01-05 08:39 | Robert Maynard | Note Added: 0037609 | |
2015-01-05 08:39 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |