[Mono-bugs] [Bug 670839] Building a Java file fails when encoding is not ANSI

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 11 20:12:49 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=670839

https://bugzilla.novell.com/show_bug.cgi?id=670839#c2


--- Comment #2 from Jonathan Pryor <jpryor at novell.com> 2011-02-12 01:12:48 UTC ---
We absolutely need to require UTF-8, for four reasons:

 1. monodroid generates Java source, and uses System.IO.StreamWriter to do so.
    System.IO.StreamWriter defaults to UTF-8 encoding.
 2. Types may contain Unicode characters, and Java also supports Unicode for
identifiers:
       
http://java.sun.com/docs/books/jvms/first_edition/html/Concepts.doc.html#25339
    It's possible that part of an identifier within a given type may not be
representable
    within the default ANSI encoding.
 3. Using the default ANSI encoding breaks source control if the source is
built
    in multiple different locales concurrently, e.g. user A working in China
    and user B working in Russia; the default encoding has ~no overlap.
 4. On OSX and Linux, UTF-8 IS the default encoding.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list