Download Pelles C here: http://www.pellesc.se
OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE
FindExt PROC src:DWORD
mov eax,DWORD PTR [esp+4]
dec eax
mov cl,'.'
@@:
inc eax
mov dl,BYTE PTR [eax]
test dl,dl
setz dh
xor dl,cl
setz ch
or ch,dh
jz @b
retn 4
FindExt ENDP
OPTION PROLOGUE:PrologueDef
OPTION EPILOGUE:EpilogueDef

Quote from: John Z on August 23, 2026, 10:09:58 PMHi,Cheers. I'm loathe to use codepages! What do you do for this kind of thing where you're dealing with Unicode file names? I guess the wide-character versions might work.
Well first I've never used these functions so a grain of salt with my comments.
Looking into the header there is no Unicode or wide character support for the functions. So support will be limited to code pages. If using ANSI code page ( I guess for the UK ?) for example then the 233 é exists and can be shown. However the ANSI code page does not include an n with diacritic in fact the only n is 241 ñ, so the closest substitution is made.
So try a different code page? I was going to suggest trying to get the 8.3 filename but it seems the same issue would hinder that too.
John Z
For example codepage 852 E4 is n with diacritic
Quote from: TimoVJL on August 23, 2026, 02:08:45 PMFunction fopen might be a problem too, as it works with ANSI filenames.That's a good point. What do you use for Unicode files?
I did some tests, even i don't like those functions, as i rather use Win32 API.
OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE
FindChar PROC src:DWORD,char:DWORD
mov eax,DWORD PTR [esp+4]
mov ecx,DWORD PTR [esp+8]
dec eax
@@:
inc eax
mov dl,BYTE PTR [eax]
mov dh,dl
xor dl,cl
sub dx,0101h
or dl,dh
cmp dl,255
jnz @b
retn 8
FindChar ENDP
OPTION PROLOGUE:PrologueDef
OPTION EPILOGUE:EpilogueDefPage created in 0.049 seconds with 15 queries.