[Bug 398505] [NEW] Encoding (rus) doesn't detect correct on garmin 60csx

b00 golovorezka at gmail.com
Sun Jul 12 18:22:01 UTC 2009


Public bug reported:

Binary package hint: gpsbabel

Please include this patch
(http://community.livejournal.com/ru_gps/77471.html?thread=420767#t420767)
to your next build of gpsbabel:

--- garmin.c	2007-02-26 02:18:44.000000000 +0300
+++ garmin.c	2007-08-03 20:35:55.000000000 +0400
@@ -41,6 +41,7 @@
 static char *snwhiteopt = NULL;
 static char *deficon = NULL;
 static char *category = NULL;
+static char *encoding = NULL;
 
 #define MILITANT_VALID_WAYPT_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
 
@@ -60,6 +61,8 @@
 		NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
 	{ "category", &category, "Category number to use for written waypoints", 
 		NULL, ARGTYPE_INT, "1", "16"},
+	{ "encoding", &encoding, "Override auto-detected encoding", 
+		NULL, ARGTYPE_STRING, ARG_NOMINMAX},
 	ARG_TERMINATOR
 };
 
@@ -184,6 +187,17 @@
 	}
 
 	}
+
+	/*
+	 * Encoding override
+	 */
+	if (encoding) {
+		receiver_charset = encoding;
+		if (global_opts.debug_level > 0)
+			fprintf(stderr, "Encoding overrided to \"%s\"\n",
+				receiver_charset);
+	}
+
 	/*
 	 * If the user provided a short_length, override the calculated value.
 	 */

Afther patching encoding must be defined in gpsbabel option (see
example):

gpsbabel -t -w -i garmin,encoding=windows-1251 -f usb: -o gpx -F out.gpx

** Affects: gpsbabel (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Encoding (rus) doesn't detect correct on garmin 60csx
https://bugs.launchpad.net/bugs/398505
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list