modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
134 stars 25 forks source link

Filename extension selection on Win32 #20

Open ajcz opened 7 years ago

ajcz commented 7 years ago

The current Win32 implementation of the “Pathname” interface separates basename and filename extension by the first (instead of the last) dot character. (For example, Pathname.LastExt("C:\Windows\system32\ntoskrnl.exe.old") returns "exe.old" instead of "old".) I couldn’t find any authoritative documentation, but this is in contrast to the behavior of the .NET framework and the Windows shell.

jaykrell commented 6 years ago

You are right it should be last dot, unless before slash, in which case no extension. I thought I cleaned this all up years ago. I’ll look..