FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New FWH 24.09
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 02:26 PM
Enrico Maria Giordano wrote:
FIVEWIN: FWH19.05

27/04/2023 09:47 <DIR> XHBBCC72
08/03/2023 15:54 <DIR> XHBBCC74
16/11/2023 09:57 <DIR> XHBBCC76

Funciona de 1000
Please try with latest FWH and the above older xHarbour builds and report back.
Enrico, with this version of FWH24.09, it does not work with any version of XHARBOUR. Very strange.

Enrico, con esta versión de FWH24.09, no funciona con ninguna versión de XHARBOUR. Muy extraño.

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 02:29 PM

Ok, now can you show me a sample (only one) with a single line showing the problem?

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 02:41 PM
Enrico Maria Giordano wrote:Ok, now can you show me a sample (only one) with a single line showing the problem?
Pronto Enrico, listo:
Code (fw): Select all Collapse
// C:\FWH\SAMPLES\NAGESCH6.PRG

#include "FiveWin.ch"

REQUEST HB_LANG_PT, HB_CODEPAGE_PTISO, HB_CODEPAGE_PT850

FUNCTION Main()

   LOCAL cTexto  := "MAÇÃ VERDE"
   LOCAL cTexto2 := "MA€Ç VERDE" // green apple

/*
   SET(_SET_CODEPAGE,"PTISO") // MAÇÃ

   ? "PTISO: ", cTexto, OemToAnsi( cTexto2 )

   SET(_SET_CODEPAGE,"CP437")

   ? "CP437: ", cTexto, OemToAnsi( cTexto2 )

   SET(_SET_CODEPAGE,"UTF8")

   ? "UTF8: ", cTexto, OemToAnsi( cTexto2 )

   SET(_SET_CODEPAGE,"CP850") // CP-850 (MS-DOS Latin 1)

   ? "CP850: ",  cTexto, OemToAnsi( cTexto2 )
*/

   // AQUI, Enrico.
   SET(_SET_CODEPAGE,"PT850") // "MA€Ç VERDE" // green apple

   ? "PT850: ",  cTexto, OemToAnsi( cTexto2 ) // NO FUNCIONA.

RETURN NIL

// FIN / END
deberia retornar: MAÇÃ VERDE -> should return: GREEN APPLE

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 02:46 PM

Please use CHR() (remember what Rao said).

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 02:51 PM
Enrico Maria Giordano wrote:Please use CHR() (remember what Rao said).
Ya hice todas las pruebas que me pidió el Maestro Nages y las publiqué aquí. Vea este ejemplo:

I've already done all the tests that Master Nages asked for and posted them here. See this example:
Code (fw): Select all Collapse
// C:\FWH\SAMPLES\NAGESCH7.PRG - Version 2 - CON "PTISO"

#include "FiveWin.ch"

REQUEST HB_LANG_PT
REQUEST HB_CODEPAGE_PT850
//REQUEST HB_CODEPAGE_PTISO

FUNCTION Main()

   HB_LANGSELECT( 'PT' )     // Default language is now Portuguese

   SET(_SET_CODEPAGE,"PT850")

   MsgInfo( "JO"   + CHR(195) + "O"   ) // Correct: JOÃO - João

   //-> 226, 227, 228, 229(similars)
   MsgInfo( "Jo"   + CHR(227) + "o"   ) // Correct: JOÃO - João

RETURN NIL

// FIN / END - kapiabafwh@gmail.com .and. jairfab@gmail.com
Deberia retornar: JOÃO - João.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:04 PM

Ok, I could replicate the problem with console too, so no FWH, and with Harbour too. For this, I don't believe that both Harbour and xHarbour could have bugs in the codepage system. I believe that the problem is in your sample, but I have not enough knowledge about codepages to say more, sorry. Any ideas? I can advice you once more to use PTISO, if it works fine for you.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:08 PM

Noticed break in backward compatibility when you set HB_SELECT("PT850") and it will be restored.

No point keep testing.

The problem is only with PT850.

Users from other countries set codepage to ITWIN, ESWIN, TRWIN, etc.

All those codepages are ANSI codepages.

But PT850 is an OEM codepage. Not an ANSI codepage. The problem arose because we treated PT850 also like we treated other HB_CDPSELECT() codepages.

Anyway, the backward compatibility is being restored soon and no more testing is required please.

Regards



G. N. Rao.

Hyderabad, India
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:15 PM
nageswaragunupudi wrote:Noticed break in backward compatibility when you set HB_SELECT("PT850") and it will be restored.
No point keep testing.
The problem is only with PT850.

Users from other countries set codepage to ITWIN, ESWIN, TRWIN, etc.
All those codepages are ANSI codepages.
But PT850 is not an OEM codepage. Not an ANSI codepage. The problem arose because we treated PT850 also like we treated other HB_CDPSELECT() codepages.

Anyway, the backward compatibility is being restored soon and no more testing is required please.
Beloved master NAGES, that's what I wanted to know. Thank you very much. And I'm sorry for the inconvenience. You are fantastic!
Enrico, thank you very much for trying to help. Big hug to you both. My deepest respect.

Amado maestro NAGES, eso es lo que quería saber. Muchas gracias. Y lamento las molestias. ¡Eres fantástico!
Enrico, muchas gracias por intentar ayudar. Un abrazo grande para ambos. Mi más profundo respeto.

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:21 PM
Ok, I could replicate the problem with console too, so no FWH, and with Harbour too. For this, I don't believe that both Harbour and xHarbour could have bugs in the codepage system.
There are no bugs at all in Harbour or xHarbour. I will later explain the behavior. Please be patient.
I can advice you once more to use PTISO, if it works fine for you.
.
Yes, PTISO is an ANSI codepage not an OEM codepage.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:27 PM
nageswaragunupudi wrote:Noticed break in backward compatibility when you set HB_SELECT("PT850") and it will be restored.
No point keep testing.
The problem is only with PT850.

Users from other countries set codepage to ITWIN, ESWIN, TRWIN, etc.
All those codepages are ANSI codepages.
But PT850 is an OEM codepage. Not an ANSI codepage. The problem arose because we treated PT850 also like we treated other HB_CDPSELECT() codepages.

Anyway, the backward compatibility is being restored soon and no more testing is required please.
In continuation, the problem is only
-- when HB_SELECT( "PT850" )
-- and with ? and Msg*() functions only.
-- but works normally with browses, says and gets and all other kinds of display.
Regards



G. N. Rao.

Hyderabad, India
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 03:36 PM
nageswaragunupudi wrote:
Noticed break in backward compatibility when you set HB_SELECT("PT850") and it will be restored.
No point keep testing.
The problem is only with PT850.

Users from other countries set codepage to ITWIN, ESWIN, TRWIN, etc.
All those codepages are ANSI codepages.
But PT850 is an OEM codepage. Not an ANSI codepage. The problem arose because we treated PT850 also like we treated other HB_CDPSELECT() codepages.

Anyway, the backward compatibility is being restored soon and no more testing is required please.
In continuation, the problem is only
-- when HB_SELECT( "PT850" )
-- and with ? and Msg*() functions only.
-- but works normally with browses, says and gets and all other kinds of display.
Sorry Master Nages, I didn't understand the translation very well. I haven't tested with:
@ 10.10 SAY OemToAnsi( "JOÃO - João" ) OF oDlg... Do you want me to take a test?

Lo siento Maestro Nages, no entendí muy bien la traducción. No he probado con:
@ 10.10 SAY OemToAnsi( "JOÃO - João" ) OF oDlg... ¿Quieres que haga una prueba?

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 04:00 PM
Please keep this conversion table for reference:


See how the same character is represented by different ASC values in different codepages.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FWH 24.09
Posted: Sun Oct 20, 2024 05:00 PM
Mr. Enrico

Do you mind letting us know the results of
Code (fw): Select all Collapse
? GetOEMCP(), GetACP()
executed from your computer?

India:
437,1252
Brazil
850,1252
Italy:
?,?
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM