This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Eigen files are utf-8 encoded without any utf-8 BOM

Tags: None
(comma "," separated)
clovett
Registered Member
Posts
1
Karma
0
The Eigen source files are utf-8 encoded without any utf-8 BOM, this confuses MSVC.

For example, Eigen/src/Core/arch/CUDA/Half.h contains curly quotes, encoded as the utf-8 triple e2 80 9c. But the file has no BOM so MSVC is trying to load it using local machine code page, which doesn't work in China.

Can you add /utf-8 to the CXX flags for MSVC in your CMakeFiles.txt ?

See https://msdn.microsoft.com/en-us/library/mt708821.aspx
and https://blogs.msdn.microsoft.com/vcblog ... -compiler/

Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
I removed them. Let me know if there are other problematic symbols.

The following command :
Code: Select all
grep --color='auto' -P -n "[\x80-\xFF]" Eigen -R

tells me that the only remaining non ASCII character is "é". Hope that's fine.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]