Re: Exception in (0): invalid utf8 input

2008-11-30 Thread Frank Benoit
I added a fix for dwt-win.
Please verify that it works for you.


Re: Exception in (0): invalid utf8 input

2008-11-30 Thread Frank Benoit
yidabu schrieb:
 On Sun, 30 Nov 2008 09:27:59 +0100
 Frank Benoit [EMAIL PROTECTED] wrote:
 
 I added a fix for dwt-win.
 Please verify that it works for you.
 
 I upated dwt-win, run jface sample ActionAndStatusbar causes Access Violation.
 

is there location where it happens?


Re: Exception in (0): invalid utf8 input

2008-11-30 Thread yidabu
On Sun, 30 Nov 2008 11:37:34 +0100
Frank Benoit [EMAIL PROTECTED] wrote:

 yidabu schrieb:
  On Sun, 30 Nov 2008 09:27:59 +0100
  Frank Benoit [EMAIL PROTECTED] wrote:
  
  I added a fix for dwt-win.
  Please verify that it works for you.
  
  I upated dwt-win, run jface sample ActionAndStatusbar causes Access 
  Violation.
  
 
 is there location where it happens?

happens on app starts. I tried all jface samples, all failed to starts, the GUI 
not shown.

-- 
yidabu [EMAIL PROTECTED]
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/




Exception in (0): invalid utf8 input

2008-11-29 Thread yidabu

My application( contains Chinese ) some times causes Exception in (0): invalid 
utf8 input , I find that it's from 
dwt.dwthelper.utils.getAbsoluteCodePointOffset getAbsoluteCodePointOffset, I 
failed to debug this exception by ddbg, I don't isue it's my application issue 
or dwt issue, any body help?



-- 
yidabu [EMAIL PROTECTED]
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/




Re: Exception in (0): invalid utf8 input

2008-11-29 Thread yidabu
On Sat, 29 Nov 2008 12:10:39 +0100
Frank Benoit [EMAIL PROTECTED] wrote:

 yidabu schrieb:
  On Sat, 29 Nov 2008 17:42:14 +0800
  yidabu [EMAIL PROTECTED] wrote:
  
  I'm sure it's valid utf8 characters, exception when 
  ApplicationWindow.setStaus(utf8Str);
 
 With this few information it is hard to help.
 
 Can you give me an example of the input string, so i can try to find out
 what is the problem?
 
 for example put this at the start of getRelativeCodePointOffset:
 
 Trace.formatln( str={}, startIndex={}, searchRelCp={}, str,
 startIndex, searchRelCp );
 Trace.memory( str );
 
 and post the output.
 
 Also using the stacktrace enabled tango lib from team0xf can help.

dwt-samples: jface.ActionAndStatusbar

Line 133:

   statman.setMessage( Format(The status action has fired. Count: {}, 
triggercount));

replace with:

statman.setMessage( tango.text.Util.repeat(中国, 100) );

dwt split Chinese to invalid utf8 character, which causes invalid utf8 
exception.





-- 
yidabu [EMAIL PROTECTED]
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/