-
2000.01.19 17:42 "RE: Unicode build of libtiff?", by Richard J. Otter
- 2000.01.19 21:27 "RE: Unicode build of libtiff?", by Leonard Rosenthol
- 2000.01.19 23:13 "RE: Unicode build of libtiff?", by Bryan H. Maret
- 2000.01.20 14:21 "RE: Unicode build of libtiff?", by Dirk Haun
2000.01.19 12:26 "Unicode build of libtiff?", by Dirk Haun
Hi,
has anyone done a unicode build of libtiff yet? I have just done the necessary modifications to the last version of libtiff supplied by Sam Leffler, when I found out that libtiff has moved ahead to version 3.5.4 since then. <doh>
So, obviously, I have to do it all again. I might be willing to send in my changes as a diff file so that others can profit but I have no idea how non-Windows platforms handle unicode.
Here's how MS does it:
- use type TCHAR instead of char for unicode characters
- each string and char literal has to be enclosed in a _T() macro
- use lstrlen, lstrcpy, etc. instead of strlen, strcpy, ...
Then, if you #define UNICODE, you get a unicode build. Otherwise, you get an ASCII/ANSI build just as before.
I guess this can all be handled with a couple of macros to put into the tif_<platform>.h files.
What do you think?
regards,
Dirk Haun
Dirk.Haun@yellow.de
Yellow Computing Computersysteme GmbH
Hanns-Martin-Schleyer-Strasse 1
D-74177 Bad Friedrichshall (Germany)
Phone +49-7136-9511-0
Fax +49-7136-9511-11
Web: http://www.yellow.de