[Gpredict-svn] SF.net SVN: gpredict:[741] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-01-24 16:22:52
|
Revision: 741
http://gpredict.svn.sourceforge.net/gpredict/?rev=741&view=rev
Author: aa1vs
Date: 2011-01-24 16:22:46 +0000 (Mon, 24 Jan 2011)
Log Message:
-----------
Fixed bug from Ubuntu #706452:Update from local files won't work with files in UPPER case
Modified Paths:
--------------
trunk/ChangeLog
trunk/NEWS
trunk/src/tle-update.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-01-21 12:30:48 UTC (rev 740)
+++ trunk/ChangeLog 2011-01-24 16:22:46 UTC (rev 741)
@@ -1,3 +1,9 @@
+2010-01-24 Charles Suprin <hamaa1vs at gmail.com>
+
+ * src/tle-update.c
+ Fix bug where tle file suffix compare is case dependent.
+ <https://bugs.launchpad.net/bugs/706452>
+
2010-12-26 Charles Suprin <hamaa1vs at gmail.com>
* src/gtk-rot-ctrl.c
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2011-01-21 12:30:48 UTC (rev 740)
+++ trunk/NEWS 2011-01-24 16:22:46 UTC (rev 741)
@@ -7,6 +7,7 @@
- Fixed bug 2116691: Leave network connection open.
- Fixed bug 3099314: Rotator Thrashing.
- Fixed bug 2167508: problems in rotator controller.
+- Fixed bug from Ubuntu #706452:Update from local files won't work with files in UPPER case
Changes in version 1.2 (12 Oct 2010)
Modified: trunk/src/tle-update.c
===================================================================
--- trunk/src/tle-update.c 2011-01-21 12:30:48 UTC (rev 740)
+++ trunk/src/tle-update.c 2011-01-24 16:22:46 UTC (rev 741)
@@ -730,17 +730,18 @@
static gboolean is_tle_file (const gchar *dir, const gchar *fnam)
{
gchar *path;
+ gchar *fname_lower;
gboolean fileIsOk = FALSE;
-
path = g_strconcat (dir, G_DIR_SEPARATOR_S, fnam, NULL);
+ fname_lower=g_ascii_strdown(fnam,-1);
if (g_file_test (path, G_FILE_TEST_IS_REGULAR) &&
- (g_str_has_suffix(fnam, ".tle") || g_str_has_suffix(fnam, ".txt")))
+ (g_str_has_suffix(fname_lower, ".tle") || g_str_has_suffix(fname_lower, ".txt")))
{
fileIsOk = TRUE;
}
-
+ g_free (fname_lower);
g_free (path);
return fileIsOk;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|