July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #9 from Oleg Halzov <ok96@mail.ru>  2009-07-22 01:19:42 PDT ---
Dear friends, D has really good ideas behind its face, but Unicode support
(UTF-16) in the compiler instead of old UTF-8 is "MUST HAVE" feature. Its a
great need in non-Latin languages. Windows-1251 codepage is #1 for Russian
Windows programmers.
Otherwise D compiler will stay an experiment forever.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #10 from Stewart Gordon <smjg@iname.com>  2009-07-22 01:47:17 PDT ---
(In reply to comment #9)
> Dear friends, D has really good ideas behind its face, but Unicode support (UTF-16) in the compiler instead of old UTF-8 is "MUST HAVE" feature.

DMD already supports UTF-16.  Even UTF-32.  Why do you want UTF-8 support removed?

> Its a great need in non-Latin languages. Windows-1251 codepage is #1 for Russian Windows programmers. Otherwise D compiler will stay an experiment forever.

How would supporting codepages work anyway?  Would they be converted to UTF-8 at compiletime?  In this case, D would need some form of character encoding declaration.  Or would they be left as are, and be rejected only in wchar, wchar[], dchar and dchar[] literals?  What about all the D features and APIs that rely on char[] being UTF-8?

Seriously, if you're going to code in D and need to use non-ASCII characters, it goes without saying that you should have a Unicode-compatible editor.  The lack of good D editors may be a real issue at the moment, but AISI it makes little sense to try to work around it.  No programming language is born with high-quality development tools.  People need to write them.  (That said, there have been a few dedicated D IDE projects.  What's the highest stage of development any of them is at?)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #11 from Oleg Halzov <ok96@mail.ru>  2009-07-22 01:57:48 PDT ---
Stewart, Windows compilers SHOULD understand and correctly convert regional
characters for console and dialogs (from resource files). The simplest test for
the compiler in Windows is to enter text in notepad.exe in regional language
and try to compile the file. MS VCPP compiler, BCC compiler and any other C++
compiler do it.
And if DMD supports UTF-16 then how to make it work with UTF-16 Russian text
entered in the simplest Notepad editor?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193


Walter Bright <bugzilla@digitalmars.com> changed:

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




--- Comment #12 from Walter Bright <bugzilla@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: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #13 from Oleg Halzov <ok96@mail.ru>  2009-07-22 03:42:38 PDT ---
Created an attachment (id=431)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=431)
D Windows Unicode text - edit in Notapad and compile result in Console

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #14 from Oleg Halzov <ok96@mail.ru>  2009-07-22 03:43:10 PDT ---
Created an attachment (id=432)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=432)
D UTF-8 text - edit in Notapad and compile result in Console

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193





--- Comment #15 from Oleg Halzov <ok96@mail.ru>  2009-07-22 03:44:11 PDT ---
Created an attachment (id=433)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=433)
D ANSI text with Russian letters - edit in Notapad and compile result in
Console

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193


Oleg Halzov <ok96@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
    Attachment #431|D Windows Unicode text -    |D Windows Unicode text -
        description|edit in Notapad and compile |edit in Notepad and compile
                   |result in Console           |result in Console




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193


Oleg Halzov <ok96@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
    Attachment #432|D UTF-8 text - edit in      |D UTF-8 text - edit in
        description|Notapad and compile result  |Notepad and compile result
                   |in Console                  |in Console




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3193


Oleg Halzov <ok96@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
    Attachment #433|D ANSI text with Russian    |D ANSI text with Russian
        description|letters - edit in Notapad   |letters - edit in Notepad
                   |and compile result in       |and compile result in
                   |Console                     |Console




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