#1183 Wrong encoding for some source files

KeePass_2.x
closed
nobody
None
5
2013-10-28
2013-10-27
No

Hi, I've been trying to build KeePass with Mono 2.10.9 (quite old version, works fine with more recent version of mono, e.g. 3.2.0 and 3.2.3) but it fails for an encoding issue:

../KeePassLib/Cryptography/QualityEstimation.cs(595,33): error CS0152: The label `case ?:' already occurs in this switch statement
../KeePassLib/Cryptography/QualityEstimation.cs(565,33): (Location of the symbol related to previous error)

The problem seems to be that the file is ISO-8859-1 encoded but it's interpreted as something else (UTF-8?).

file ./KeePassLib/Cryptography/QualityEstimation.cs

./KeePassLib/Cryptography/QualityEstimation.cs: ISO-8859 text, with CRLF line terminators

The problem is fixed re-saving the file as UTF-8 with BOM, as most of the other source code files are.

Here are some other ISO-8859-1 encoded files, which work fine, but it may be worth to fix anyway.

( find -name "*.cs" | xargs file ) | grep ISO-8859

./Translation/TrlUtil/MainForm.cs: ISO-8859 text, with CRLF, NEL line terminators
./KeePassLib/PwDefs.cs: ISO-8859 text, with CRLF line terminators
./KeePassLib/Cryptography/QualityEstimation.cs: ISO-8859 text, with CRLF line terminators

Downstream bug report:
https://bugs.gentoo.org/show_bug.cgi?id=489506

Discussion

  • Dominik Reichl

    Dominik Reichl - 2013-10-28
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2013-10-28

    I've changed the encoding of the 3 files you listed to UTF-8 with BOM. Plus, I've replaced the ° symbol by \u00B0.

    Thanks and best regards,
    Dominik

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks