Re: winefile: UNICODE

2005-07-03 Thread Martin Fuchs
> > No, I don't need tchar.h in 'unixcalls.c'. I only needed it > > for 'winefile.c'. The problem is, if I add 'include/msvcrt' > > to the include path, it is added to both files at the same time. > > I see. What about adding a separate rule to Makefile.in just for > unixcalls.c and omit that file

Re: winefile: UNICODE

2005-07-03 Thread Martin Fuchs
> > I thought it would be enough just to use "--ptr" to go back one > > character in UCS-16 strings. Only MBCS or UTF-8 encoded strings would > > need such helper functions like CharPrevW()? > > IIRC there are these 'surrogate pairs' in which case just --ptr > will not work correctly: > http://msd

Re: winefile: UNICODE

2005-07-03 Thread Ralf Reiterer
> No, I don't need tchar.h in 'unixcalls.c'. I only needed it > for 'winefile.c'. The problem is, if I add 'include/msvcrt' > to the include path, it is added to both files at the same time. I see. What about adding a separate rule to Makefile.in just for unixcalls.c and omit that file from C_SR

Re: winefile: UNICODE

2005-07-03 Thread Dimi Paun
On Sun, 2005-07-03 at 13:31 +0200, Martin Fuchs wrote: > I thought it would be enough just to use "--ptr" to go back one > character in UCS-16 strings. Only MBCS or UTF-8 encoded strings would > need such helper functions like CharPrevW()? IIRC there are these 'surrogate pairs' in which case just

Re: winefile: UNICODE

2005-07-03 Thread Martin Fuchs
> > > CharUpperW() is towupper(). > > > > Well, CharUpper() works with strings instead of characters. So that's > > what I changed in the pattern matching function. > > No, it also works on characters. Check MSDN. ;) # [in/out] Pointer to a null-terminated string or specifies a single character.

Re: winefile: UNICODE

2005-07-03 Thread Marcus Meissner
On Sun, Jul 03, 2005 at 01:31:06PM +0200, Martin Fuchs wrote: > > > I can't find a replacement for wcsrchr() in the windows API, so I have to > > > include my own implementation in the source. There is also no equivalent > > > of towupper(), so I have to change the pattern matching function a bit

Re: winefile: UNICODE

2005-07-03 Thread Martin Fuchs
> > I can't find a replacement for wcsrchr() in the windows API, so I have to > > include my own implementation in the source. There is also no equivalent of > > towupper(), so I have to change the pattern matching function a bit. > > wcsrchr() is problematic, but can probalby be done with CharP

Re: winefile: UNICODE

2005-07-03 Thread Marcus Meissner
> > So I see two solutions: > > (1) make a hard break and change the whole winefile to Unicode. For > > unixcalls.c you can rely on the Windows API for manipulating Unicode > > I can't find a replacement for wcsrchr() in the windows API, so I have to > include my own implementation in the source.

Re: winefile: UNICODE

2005-07-03 Thread Martin Fuchs
Hello Ralf, > I assume you only need include/msvcrt for unixcalls.c to be able to > include tchar.h. I assume the reason why tchar.h only works with msvcrt No, I don't need tchar.h in 'unixcalls.c'. I only needed it for 'winefile.c'. The problem is, if I add 'include/msvcrt' to the include path,

AW: winefile: UNICODE

2005-07-02 Thread Ralf Reiterer
Hi Martin, > currently it's impossible to compile winefile in UNICODE mode > with Wine without some extra rule for unixcalls.c in the > Makefile. I tried it even without using any TCHAR functions > or types, but inserting include/msvcrt in the include path > conflicts with inclusion of the hea

Re: winefile: UNICODE

2005-07-02 Thread Martin Fuchs
Dmitry, > > switch winefile to UNICODE mode > > Why to go through all this pain and not just make it unicode > only? currently it's impossible to compile winefile in UNICODE mode with Wine without some extra rule for unixcalls.c in the Makefile. I tried it even without using any TCHAR functions

Re: winefile: UNICODE

2005-06-13 Thread Martin Fuchs
> > Changelog: > > switch winefile to UNICODE mode > Why to go through all this pain and not just make it unicode > only? First of all: Winefile was designed to be usable both in ANSI and UNICODE mode from the begin on, and I won't remove this functionality. So you can build and use it also on 8

Re: winefile: UNICODE

2005-06-12 Thread Dmitry Timoshkov
"Martin Fuchs" <[EMAIL PROTECTED]> wrote: > Changelog: > switch winefile to UNICODE mode Why to go through all this pain and not just make it unicode only? -- Dmitry.