Encoding (rus) doesn't detect correct on garmin 60csx
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://
--- 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_
@@ -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_
+ 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,
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.