This is impossible to tell when pasted to an e-mail.
Anyhow I've checked it locally directly in the source
and to me the PT850 looks alright.
Try to open src/codepage/cppt850.c with an editor
which you can set to 850 CP, or your browser. Or
do the same with above test after your write the
result in a file instead of showing it on screen.
The problem is probably in your display or output
settings.
Viktor
Thank you Viktor!
I got confused because I used an ANSI editor to write the PRG code when the
codepage table code is written in OEM.
Once that is figured out we will write ANSIUpper() and ANSILower() functions
to convert the parameter string from ANSI to OEM before passing it to
Upper() and Lower() and then convert their return back to OEM. That is not
so fast and practical but should work.
But, as a suggestion, I think that it can be very usefull if Harbour can
support ANSI based codepage. I mean, instead of always converting strings
from OEM to ANSI or converting source code to OEM one could just select the
code page as ANSI or OEM at hb_CDPselect(cdpID,bAnsi) or with a
Set(_SET_ANSI_CODEPAGE). Then when ANSI codepage mode was set, the upper and
lower char tables could be converted to ANSI inside hb_buildCodePage before
the get to cdp->lower and cdp->lower members, or (and this would be more
complex) cdp structure could be extent to carry also ANSI lower and upper
tables.
What do you think about it?
Regards,
Leandro
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour