Hello friends,
I’m currently testing a transition from xHarbour/FiveWin to Harbour, and I’m running into a compatibility issue with the following classic logic:
SET ORDER TO TAG ...
SET SCOPE TO "Ö"
This works perfectly in xHarbour, but under Harbour the result is incorrect or empty when using characters like "Ö", "Ä", etc.
🔍 What I suspect:
It seems that Harbour is missing the required codepage definitions, especially:
HB_CODEPAGE_DEWIN
HB_CODEPAGE_DE850
HB_CODEPAGE_CS852
HB_CODEPAGE_EL737
and the function hb_SetCodePage()
What I already tried:
Using REQUEST HB_CODEPAGE_DEWIN in my .prg
Compiling the matching .c files (cpdewin.c, uc1252.c, etc.)
Calling hb_SetCodePage("DEWIN") → results in unresolved external symbol
Checked the Harbour GitHub repository → hbcodepage.c is no longer there
Searched for hbcodepage.lib → not included in my build
My questions:
Is there a working way to get or build hbcodepage.lib for Harbour under Windows with BCC32 (no hbmk2)?
Alternatively: is it safe to use xhbcode.lib from an xHarbour/FiveWin build just to provide hb_SetCodePage() and required codepages?
Which files/symbols are strictly required to make SET SCOPE and SEEK() work properly with Umlauts and extended characters?
Thanks in advance,
Otto
I’m currently testing a transition from xHarbour/FiveWin to Harbour, and I’m running into a compatibility issue with the following classic logic:
SET ORDER TO TAG ...
SET SCOPE TO "Ö"
This works perfectly in xHarbour, but under Harbour the result is incorrect or empty when using characters like "Ö", "Ä", etc.
It seems that Harbour is missing the required codepage definitions, especially:
HB_CODEPAGE_DEWIN
HB_CODEPAGE_DE850
HB_CODEPAGE_CS852
HB_CODEPAGE_EL737
and the function hb_SetCodePage()
What I already tried:
Using REQUEST HB_CODEPAGE_DEWIN in my .prg
Compiling the matching .c files (cpdewin.c, uc1252.c, etc.)
Calling hb_SetCodePage("DEWIN") → results in unresolved external symbol
Checked the Harbour GitHub repository → hbcodepage.c is no longer there
Searched for hbcodepage.lib → not included in my build
My questions:
Is there a working way to get or build hbcodepage.lib for Harbour under Windows with BCC32 (no hbmk2)?
Alternatively: is it safe to use xhbcode.lib from an xHarbour/FiveWin build just to provide hb_SetCodePage() and required codepages?
Which files/symbols are strictly required to make SET SCOPE and SEEK() work properly with Umlauts and extended characters?
Thanks in advance,
Otto