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)?
Best regards Andreas
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
On Tue, 17 Apr 2007 16:55:55 +0300, Yura Semashko yurand2@gmail.com wrote:
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:
- ignore case for filetype detection (use lowercase)
- just add .PAS to pascal extencions
Second patch don't make things worse anyway, so it is save to apply.
Thanks Andreas and Yura.
I'm not sure whether to apply the first one. And if, we should only lowercase the basename on Windows systems, I guess users of Unix-like systems won't expect that behaviour and probably get confused. What do you think?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 04/17/2007 05:12:26 PM, Enrico Tröger wrote:
On Tue, 17 Apr 2007 16:55:55 +0300, Yura Semashko yurand2@gmail.com wrote:
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:
- ignore case for filetype detection (use lowercase)
- just add .PAS to pascal extencions
Second patch don't make things worse anyway, so it is save to apply.
Thanks Andreas and Yura.
I'm not sure whether to apply the first one. And if, we should only lowercase the basename on Windows systems, I guess users of Unix-like systems won't expect that behaviour and probably get confused. What do you think?
I think we should apply the patch change only for Windows.
BTW, a trick I sometimes use on Windows if I have a file 'cASE.TXT' is to rename it to some other name, then rename again to 'Case.txt'. That way the correct case should be preserved.
Regards, Nick
On Tue, Apr 17, 2007 at 06:12:26PM +0200, Enrico Tröger wrote:
On Tue, 17 Apr 2007 16:55:55 +0300, Yura Semashko yurand2@gmail.com wrote:
It matter for gcc: .C is c++ extencion .c is c
Here is is two patches that solve the problem:
- ignore case for filetype detection (use lowercase)
- just add .PAS to pascal extencions
Second patch don't make things worse anyway, so it is save to apply.
Thanks Andreas and Yura.
I'm not sure whether to apply the first one. And if, we should only lowercase the basename on Windows systems, I guess users of Unix-like systems won't expect that behaviour and probably get confused. What do you think?
FWIW, and as a unix user, that would in fact annoy me. So I guess I vote for windows-only lowercasing.
On Tue, 17 Apr 2007 18:12:26 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 17 Apr 2007 16:55:55 +0300, Yura Semashko yurand2@gmail.com wrote:
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:
- ignore case for filetype detection (use lowercase)
- just add .PAS to pascal extencions
Second patch don't make things worse anyway, so it is save to apply.
Thanks Andreas and Yura.
I'm not sure whether to apply the first one. And if, we should only lowercase the basename on Windows systems, I guess users of Unix-like
Finally done in SVN r1576. Sorry for the delay.
For the filetype detection based on filename extensions, the basename of the file will be converted to lowercase and then it will be compared with the available extensions. Applies only for Windows systems.
This also means, that a file something.C will be opened as a C and not as a C++ file in Geany on Windows. But I guess .C is rarely used, so it shouldn't be a big problem.
Regards, Enrico