Re: MBCS character code support

2012-05-20 Thread Walter Bright
On 5/20/2012 10:14 PM, Katayama Hirofumi MZ wrote: Can D convert strings on compile time? Yes, you can write a CTFE function to do it.

Re: MBCS character code support

2012-05-20 Thread Katayama Hirofumi MZ
Can D convert strings on compile time?

Re: MBCS character code support

2012-05-19 Thread Denis Shelomovskij
16.05.2012 8:26, Alex Rønne Petersen написал: On 16-05-2012 06:18, Katayama Hirofumi MZ wrote: On Wednesday, 16 May 2012 at 04:12:04 UTC, Alex Rønne Petersen wrote: I really do not understand why you want to use Shift-JIS. Unicode has long superseded all these magical encodings used all over th

Re: MBCS character code support

2012-05-16 Thread Kagamin
On Wednesday, 16 May 2012 at 04:19:00 UTC, Katayama Hirofumi MZ wrote: On Windows 9x, there is no Unicode support. http://msdn.microsoft.com/en-us/goglobal/bb688166

Re: MBCS character code support

2012-05-16 Thread Walter Bright
On 5/15/2012 7:12 PM, Katayama Hirofumi MZ wrote: > Hello, everyone! > > I want multibyte character string (MBCS) support except Unicode, UTF-8 and > UTF-16. > > Could you make the D compiler generate Shift_JIS, EUC-JP code for every > string > literals by a specific command line option? > >

Re: MBCS character code support

2012-05-15 Thread Alex Rønne Petersen
On 16-05-2012 06:18, Katayama Hirofumi MZ wrote: On Wednesday, 16 May 2012 at 04:12:04 UTC, Alex Rønne Petersen wrote: I really do not understand why you want to use Shift-JIS. Unicode has long superseded all these magical encodings used all over the world. Why oppose a unified encoding? On Wi

Re: MBCS character code support

2012-05-15 Thread Katayama Hirofumi MZ
On Wednesday, 16 May 2012 at 04:12:04 UTC, Alex Rønne Petersen wrote: I really do not understand why you want to use Shift-JIS. Unicode has long superseded all these magical encodings used all over the world. Why oppose a unified encoding? On Windows 9x, there is no Unicode support. Instead, n

Re: MBCS character code support

2012-05-15 Thread H. S. Teoh
On Wed, May 16, 2012 at 06:12:03AM +0200, Alex Rønne Petersen wrote: > On 16-05-2012 06:04, Katayama Hirofumi MZ wrote: > >All Japaneses and/or other Asians want native MBCS support. > >Please let the D compiler generate Shift_JIS code for literal strings. > > I really do not understand why you wa

Re: MBCS character code support

2012-05-15 Thread Alex Rønne Petersen
On 16-05-2012 06:04, Katayama Hirofumi MZ wrote: All Japaneses and/or other Asians want native MBCS support. Please let the D compiler generate Shift_JIS code for literal strings. I really do not understand why you want to use Shift-JIS. Unicode has long superseded all these magical encodings

Re: MBCS character code support

2012-05-15 Thread Katayama Hirofumi MZ
All Japaneses and/or other Asians want native MBCS support. Please let the D compiler generate Shift_JIS code for literal strings.

Re: MBCS character code support

2012-05-15 Thread Katayama Hirofumi MZ
You can convert UTF-8 to Shift_JIS by the following code. /* Linux, FreeBSD or UNIX */ #include iconv_t g_icUTF8toSJIS; char *convert_utf8_to_sjis(char *in) { char *out, *p_in, *p_out, size_t in_size, out_size; in_size = strlen(in); out_size = in_size; out = (char *)malloc

MBCS character code support

2012-05-15 Thread Katayama Hirofumi MZ
Hello, everyone! I want multibyte character string (MBCS) support except Unicode, UTF-8 and UTF-16. Could you make the D compiler generate Shift_JIS, EUC-JP code for every string literals by a specific command line option? Shift_JIS and EUC-JP are Japanese character set.