[Geany] Does not recognize filetypes under Windows when written in captial letters

Yura Semashko yurand2 at xxxxx
Tue Apr 17 13:55:55 UTC 2007


On Аўторак 17 Красавік 2007 14:44, Andreas Tscharner wrote:
> Hello World, hello Enrico,
>
> Geany 0.11svn_r1456 (Windows) does not recognize files that have the
> file extension in capital (or mixed) letters, for example, the file
> foo.pas is recognized, but bar.PAS is not (and bar.Pas neither).
> Windows is not case sensitive (but case preserving), so it does not
> matter whether capital or small letters are used.
> Thinking about it: Does it matter for GCC how the file extension is
> written (.cc, .CC, .cpp, .CPP)?
It matter for gcc:
.C is c++ extencion
.c is c

Here is is two patches that solve the problem:
1) ignore case for filetype detection (use lowercase)
2) just add .PAS to pascal extencions

Second patch don't make things worse anyway, so it is save to apply.

Best regards,
Yura Semashko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filetypes_1.patch
Type: text/x-diff
Size: 385 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070417/5546a729/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filetypes_2.patch
Type: text/x-diff
Size: 678 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070417/5546a729/attachment-0001.patch>


More information about the Users mailing list