Encoding (rus) doesn't detect correct on garmin 60csx

Bug #398505 reported by b00
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
gpsbabel (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for providing a patch for this bug report. This particular package is synchronized with Debian so it would be quite helpful if you were to forward the patch to the Debian bug tracker. You can learn more about how to use the Debian bug tracker at https://wiki.ubuntu.com/Debian/Bugs. After you've forwarded the bug report and patch please add a bug watch, following the procedure at http://wiki.ubuntu.com/Bugs/Watches, so we can track the progress of the upstream bug report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.