-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix garmin serial/usb device character encoding/decoding. (#1117)
* attempt to use correct codec with garmin reader. the garmin writer is unchanged as of yet. * fix garmin writer wrt encoding. * add garmin option to force codec. * update serialization ref files for garmin codec option. * fix potential overwrite bug with route/track names in garmin writer. * fix up for old Qt. * correct assertion * use static_assert to for fixed buffer size checks. * document garmin codec option * don't clean rtept/trkpt names for newer devices. We clear badchars for newer devices already, effectively not cleaning wpt names.
- Loading branch information
1 parent
9eb6364
commit d4591fa
Showing
4 changed files
with
123 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<para> | ||
This lets you override the default codec used for your device when reading or writing | ||
strings from or to your Garmin device. The default codec is device dependent, you can see | ||
what codec is being used with your device by adding the -vs option to the command line. | ||
</para> | ||
<para> | ||
<userinput> | ||
gpsbabel -vs -w -i garmin -f usb: -o gpx -F garmin.gpx | ||
</userinput> | ||
<userinput> | ||
gpsbabel -w -i garmin,codec=windows-1251 -f usb: -o gpx -F garmin.gpx | ||
</userinput> | ||
<userinput> | ||
gpsbabel -w -i gpx -f garmin.gpx -o garmin,codec=windows-1251 -F usb: | ||
</userinput> | ||
</para> |