bugDotGNU Portable.NET - Bugs: bug #11464, cscc chokes on unicode byte mark


You are not allowed to post comments on this tracker with your current authentification level.

bug #11464: cscc chokes on unicode byte mark

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Fri 31 Dec 2004 03:40:29 PM UTC  
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat 05 Mar 2005 06:26:20 AM UTC, comment #2:


As Microsoft's tools handles the bytemark, it's a bug in pnet if pnet doesn't.

But to argue against supporting bytemarks (just for the fun of it):

cscc always treats source files as UTF-8 (can also use latin1, if specified), but it does not support the bytemark used in unicode streams. Why? UTF-8 is the encoding used by all .NET technologies, unless otherwise specified.

"A conforming implementation of C# shall interpret characters in conformance with the Unicode Standard[...]." - ECMA-334

And if all the files is treated as UTF-8 by default, there is no need to tell the compiler that the file is UTF-8.

"A protocol SHOULD forbid use of U+FEFF as a signature for those textual protocol elements that the protocol mandates to be always UTF-8, the signature function being totally useless in those cases." - RFC 3629

So if it was the reverse, the sourcefiles being latin1 by default and we'd have to use a commandline switch (or simlar) to determine the encoding to be UTF-8, a bytemark would be great. But now that's not the case, and a bytemark is totally useless, the commandline switch should in any case still override the bytemark.


Carl-Adam Brengesjo <ptah>
Project Member
Fri 31 Dec 2004 03:54:41 PM UTC, comment #1:

It turns out that this is UTF-8 encoded source file.
This bug should be titled, feature request for UTF-8 or i18n suport for source files.


James Michael DuPont <mdupont>
Fri 31 Dec 2004 03:40:29 PM UTC, original submission:

I have reported this bug to mono,
they say it is a wishlist.
please track this issue as something to add to pnet.

--- shadow/70910 2004-12-31 08:44:57.000000000 -0500
+++ shadow/70910.tmp.13646 2004-12-31 11:03:02.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 70910
Product: Mono: Class Libraries
Version: 1.0
OS: Debian Woody
OS Details: Linux debian GNU/Linux UNSTABLE 2.4.21-xfs #13 SMP Tue Aug
26 01:46:14 CEST 2003 i686 GNU/Linux
-Status: NEW
+Resolution: INVALID
+Severity: Unknown
Priority: Wishlist
Component: System
AssignedTo: -unavailable-
ReportedBy: -unavailable-
QAContact: -unavailable-
TargetMilestone: ---
@@ -20,6 +20,17 @@
contains the following lines :
// System.Collections.Generic.ReadOnlyCollection

It cannot compile.
+------- Additional Comments From -unavailable- 2004-12-31
11:03 -------
+It can compile dude
+[benm@omega System.Collections.Generic]$ gmcs ReadOnlyCollection.cs
+error CS5001: Program ReadOnlyCollection.exe does not have an entry
+point defined
+Compilation failed: 1 error(s), 0 warnings
+(it also works with csc)

James Michael DuPont <mdupont>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 05 Mar 2005 06:26:20 AM UTCptahSeverity3 - Normal=>2 - Minor
  SummaryCscc chokes on garbage that mono ignores=>cscc chokes on unicode byte mark

Back to the top

Powered by Savane 3.1-cleanup