Revision: 1576 http://svn.sourceforge.net/geany/?rev=1576&view=rev Author: eht16 Date: 2007-05-26 02:03:02 -0700 (Sat, 26 May 2007)
Log Message: ----------- Ignore case of filename extensions on Windows.
Modified Paths: -------------- trunk/ChangeLog trunk/src/filetypes.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-05-26 09:02:37 UTC (rev 1575) +++ trunk/ChangeLog 2007-05-26 09:03:02 UTC (rev 1576) @@ -1,3 +1,9 @@ +2007-05-26 Enrico Tröger enrico.troeger@uvena.de + + * src/filetypes.c: Ignore case of filename extensions on Windows. + * src/ui_utils.c: Add missing header file. + + 2007-05-25 Enrico Tröger enrico.troeger@uvena.de
* data/filetype_extensions.conf, src/filetypes.c, tagmanager/sh.c:
Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2007-05-26 09:02:37 UTC (rev 1575) +++ trunk/src/filetypes.c 2007-05-26 09:03:02 UTC (rev 1576) @@ -654,11 +654,16 @@ filetype *filetypes_detect_from_filename(const gchar *utf8_filename) { GPatternSpec *pattern; - gchar *base_filename; gint i, j;
// to match against the basename of the file(because of Makefile*) - base_filename = g_path_get_basename(utf8_filename); +#ifdef G_OS_WIN32 + gchar *tmp = g_path_get_basename(utf8_filename); + gchar *base_filename = g_utf8_strdown(tmp, -1); + g_free(tmp); +#else + gchar *base_filename = g_path_get_basename(utf8_filename); +#endif
for(i = 0; i < GEANY_MAX_FILE_TYPES; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.