[Issue 3193] Support Windows-1251 as a source encoding

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 22 02:32:24 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3193


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com




--- Comment #12 from Walter Bright <bugzilla at digitalmars.com>  2009-07-22 02:32:23 PDT ---
> And if DMD supports UTF-16 then how to make it work with UTF-16 Russian text
> entered in the simplest Notepad editor?

DMD will automatically detect and work correctly with UTF-16 and UTF-32 encoded
source files. The logic to do this is in module.c of the compiler source code.

If it does not work with a particular UTF-16 encoded file, please attach that
file to this bug report. Note that UTF-16 encoded files are not encoded using a
code page.

If a source file is encoded with a particular code page, there is no way for
the compiler to automatically detect it. C compilers often have a command line
flag which is used to tell it what code page to use. Using code pages,
therefore, makes your source code completely non-portable which is one of the
reasons why D uses Unicode instead.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list