[Hamlib-developer] [Hamlib/Hamlib] 923a78: Fix sscanf() truncating input from thousands separ...
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Nate B. <no...@gi...> - 2025-04-22 03:03:48
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 923a789c29ad81abfbb7149f80cebd51afc6b756 https://github.com/Hamlib/Hamlib/commit/923a789c29ad81abfbb7149f80cebd51afc6b756 Author: Nate Bargmann <n0...@n0...> Date: 2025-04-21 (Mon, 21 Apr 2025) Changed paths: M rigs/dummy/aclog.c Log Message: ----------- Fix sscanf() truncating input from thousands separator Per Github issue #1704, N3FJP logger sends a string with an embedded comma for frequencies above 1 GHz resulting in such frequencies being truncated. This patch uses the optional apostrophe character in the sscanf() format string to ignore the thousands separator. A possible bug is when the locale of the system on which libhamlib is executing uses a dot for the thousands separator rather than a comma. It is unclear if the N3FJP software obeys such locales or not. If this turns out to be an issue then this fix will need to be reconsidered. Commit: 5d81ea38bbdfd92e680995057b8ed46f53f5a8d8 https://github.com/Hamlib/Hamlib/commit/5d81ea38bbdfd92e680995057b8ed46f53f5a8d8 Author: Nate Bargmann <n0...@n0...> Date: 2025-04-21 (Mon, 21 Apr 2025) Changed paths: M rigs/dummy/aclog.c Log Message: ----------- Merge pull request #1710 from N0NB/aclog_get_freq-thousands_separator Fix sscanf() truncating input from thousands separator Compare: https://github.com/Hamlib/Hamlib/compare/9aed2637a63a...5d81ea38bbdf To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |