kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-25 Thread Andrew O . Shadoura
Hello, Robert! Tuesday, March 13, 2007, 16:35:49, you wrote: RS> Andrew O. Shadoura wrote: >> MB_USEGLYPHCHARS Use glyph characters instead of control characters. >> 'control characters' in this context are _Unicode_ characters below U+0020. >> dst is a pointer to WCHAR string - this means it is

kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-25 Thread Andrew O . Shadoura
Hello, Robert! Tuesday, March 13, 2007, 16:35:49, you wrote: RS> Andrew O. Shadoura wrote: >> MB_USEGLYPHCHARS Use glyph characters instead of control characters. >> 'control characters' in this context are _Unicode_ characters below U+0020. >> dst is a pointer to WCHAR string - this means it is

Re: kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-13 Thread Alexandre Julliard
Andrew O. Shadoura <[EMAIL PROTECTED]> writes: > 2. MB_USEGLYPHCHARS Use glyph characters instead of control characters. > 'control characters' in this context are _Unicode_ characters below U+0020. > dst is a pointer to WCHAR string - this means it is Unicode string. So, > we don't need to take

kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-13 Thread Andrew O . Shadoura
Hello, Robert! Monday, March 12, 2007, 18:02:59, you wrote: RS> Andrew O. Shadoura wrote: >> break; >> } >> >> +if (flags & MB_USEGLYPHCHARS) { >> +for (i=0; i!=dstlen; i++) >> +if (dst[i]<0x20) dst[i]=glyph_xlat[dst[i]]; >> +} >> + >> RS> I think you

Re: kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-13 Thread Robert Shearman
Andrew O. Shadoura wrote: MB_USEGLYPHCHARS Use glyph characters instead of control characters. 'control characters' in this context are _Unicode_ characters below U+0020. dst is a pointer to WCHAR string - this means it is Unicode string. So, we don't need to take into account any codepages, bec

Re: kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-12 Thread Dmitry Timoshkov
"Robert Shearman" <[EMAIL PROTECTED]> wrote: Andrew O. Shadoura wrote: break; } +if (flags & MB_USEGLYPHCHARS) { +for (i=0; i!=dstlen; i++) +if (dst[i]<0x20) dst[i]=glyph_xlat[dst[i]]; +} + I think you need to take into account the codepage when d

Re: kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-12 Thread Robert Shearman
Andrew O. Shadoura wrote: break; } +if (flags & MB_USEGLYPHCHARS) { +for (i=0; i!=dstlen; i++) +if (dst[i]<0x20) dst[i]=glyph_xlat[dst[i]]; +} + I think you need to take into account the codepage when doing this translation. -- Rob Shearman

Re: kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

2007-03-10 Thread Felix Nawothnig
Andrew O.Shadoura wrote: +#if 0 static int once; +#endif if (!src || (!dst && dstlen)) { @@ -1774,11 +1783,13 @@ INT WINAPI MultiByteToWideChar( UINT pag if (srclen < 0) srclen = strlen(src) + 1; +#if 0 if (!once && (flags & MB_USEGLYPHCHARS)) { once = 1;