I am observing a difference in the behavior of the File() function when migrating from xHarbour 123 to Harbour 320:
- Code: Select all Expand view RUN
REQUEST HB_LANG_PT
REQUEST HB_CODEPAGE_PT850
HB_SETCODEPAGE('PT850')
HB_LANGSELECT('PT')
xHarbour 123:
-----------------
cFile := "D:\Tmp\_Arquivos_Enviar\RELATÓRIO DE ATIVIDADES xxxx 01-01-2024 a 31-01-2024.pdf" // Name of file contains accent
? File( cFile ) // Results .T.
? File( AnsiToOem(cFile)) // Results .F.
? File(OemToAnsi(cFile)) // Results .F.
cFile := "D:\Tmp\_Arquivos_Enviar\RELATORIO DE ATIVIDADES xxxx 01-01-2024 a 31-01-2024 - Copia.pdf" // Name of file not contains accent
? File( cFile ) // Results .T.
? File( AnsiToOem(cFile)) // Results .T.
? File(OemToAnsi(cFile)) // Results .T.
Harbour 320:
----------------
cFile := "D:\Tmp\_Arquivos_Enviar\RELATÓRIO DE ATIVIDADES xxxx 01-01-2024 a 31-01-2024.pdf" // Name of file contains accent
? File( cFile ) // Results .F. // Diference here
? File( AnsiToOem(cFile)) // Results .T.
? File(OemToAnsi(cFile)) // Results .F. // Diference here
cFile := "D:\Tmp\_Arquivos_Enviar\RELATORIO DE ATIVIDADES xxxx 01-01-2024 a 31-01-2024 - Copia.pdf" // Name of file not contains accent
? File( cFile ) // Results .T.
? File( AnsiToOem(cFile)) // Results .T.
? File(OemToAnsi(cFile)) // Results .T.
Some idea?
Regards.