styledtext: gibberish codes

yidabu yidabu.spam at gmail.com
Fri Aug 22 15:36:46 PDT 2008


On Fri, 22 Aug 2008 15:01:04 +0200
Frank Benoit <keinfarbton at googlemail.com> wrote:

> yidabu schrieb:
> > On Fri, 22 Aug 2008 12:32:36 +0200
> > Frank Benoit <keinfarbton at googlemail.com> wrote:
> > 
> >> yidabu schrieb:
> >>> On Fri, 22 Aug 2008 09:13:46 +0200
> >>> Frank Benoit <keinfarbton at googlemail.com> wrote:
> >>>
> >>>> yidabu schrieb:
> >>>>> running sytledtext snippet, type in multi-bytes characters, the result is gibberish code.
> >>>>>
> >>>>> e.g. type in 中国 (means China), I tested with two IMEs, 
> >>>>> 	1, the result is gibberish code 
> >>>>> 	2, the snippet creashed.
> >>>>>
> >>>> I found two problematic places. The example works now.
> >>>> Can you please retry.
> >>> still now work.
> >>>
> >>> Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128)
> >>> ->us
> >>> #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll
> >>> #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll
> >>> #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll
> >>> #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll
> >>> #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll
> >>> #5 0x0040b5b9 in  dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521
> >>> #6 0x004040f2 in _Dmain () at Snippet244.d:65
> >>> #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2
> >>> #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2
> >>> #9 0x006342c8 in _main () from dmain2
> >>> #10 0x0064e551 in _mainCRTStartup () from constart
> >>> #11 0x7c816fd7 in ?? () from KERNEL32.dll
> >>>
> >>>
> >>>
> >> I do not get this.
> >> Can you describe more detailed how you can produce that?
> >>
> > 
> > 1, update dwt-win locae copy 
> > 2, dsss 0.75 to building dwt.lib
> > 3, dmd 1.033 to building styledtext snippet
> >    for example, build.bat:
> > 
> > set flags=D:\dwt-samples\dwt.res -L/SUBSYSTEM:windows:5 -JD:\dwt-samples\res -debug -g -unittest
> > set src=Snippet218
> > dmd %src%.d %flags%
> > %src%
> > del *.obj *.map
> > pause
> > 
> > 4, the snippets still not work
> 
> Hm, this runs for me:
> http://img373.imageshack.us/my.php?image=snippet218jq3.png
> 
> I use QuickKey to "type" the two chinese characters.

no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code.


http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg


-- 
yidabu <yidabu.spam at gmail.com>
http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/




More information about the Digitalmars-d-dwt mailing list