Hi Zeljko,
> 1. The sorting is incorrect. It is sorted in the English collation,
> which is fine as I use user defined functions on the indexes to generate
> the correct sorting order.
OK, apparently I misread what you said. No unexplained magic then :-)
> 2. As for the line HB_SETTERMCP("HR852","HR646") , Wooooow this I did
> not expect this to happen, I removed the line and the app still works.
> Seems to make no difference. This does surprise me, as it was necessary
> in HB30 to make it work. Thanks for pointing it out.
:-)
> 3. I tried your suggestion with SET( _SET_OSCODEPAGE, hb_cdpOS() ) , but
> the backslash is still interpreted as the Croatian letter "Đ".
I think that setting is still a bonus if you encounter files with
Croatian characters in the filename. Make a small test with Fopen() or
hb_MemoRead(), with and without setting the OS codepage, and try to use
files with Croatian filenames. But for correct handling of backslashes,
there are bigger problems to solve.
> Thanks for your help. If you have some other suggestion for the backlash
> problem, I am eager to try it out. Looked my code up and there are lots
> of backslashes related to the location of DBF and other files, so it is
> a PITA to change them.
Well, the 1250-based Croatian "HRWIN" or the 8859-2-based "HRISO"
codepage in the VM should solve that, I believe, judging from what
Wikipedia tells me. But the conversion of your source code files would
probably be a pretty big job. On the other hand, one day you will likely
have to break out of the restrictions of using a DOS codepage anyway. I
suggest you make another small test using that approach. It will give
you a taste of what you might accomplish if you go that route in the
future. Since the problem with translation when reading and writing DBF
files has been solved, converting to Windows or ISO in the VM and the
user interface will not give you any new problems in that area.
And regarding path separators in general, in my own code I have done
away with literal path separators entirely. The code I write nowadays is
as OS independent as I am able to create. That means using the hb_PS()
function and moving all file handling to special functions out of the
general business code. So I should be able to move to a different OS
that uses forward slashes with no changes in the source code. Old code
requires some work, though :-)
Regards,
Klas