ui: (size->number "1.M") is correctly parsed.
authorLudovic Courtès <ludo@gnu.org>
Sun, 23 Feb 2020 11:42:58 +0000 (12:42 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 23 Feb 2020 11:47:13 +0000 (12:47 +0100)
commitfa99c4bbc7acdb8def9ce14a05aacb73f99fe3b1
tree953d26ba2fc7e05c0b04ab45cb0fed8b0a1d25b9
parent9f2fef4fb164df81034c2b114292d836a9f6d4f8
ui: (size->number "1.M") is correctly parsed.

Reported by Pierre Neidhardt <mail@ambrevar.xyz>.

* guix/ui.scm (size->number)[unit-pos]: Add #\. to CHAR-SET:DIGIT.
* tests/ui.scm ("size->number, 1.M"): New test.
guix/ui.scm
tests/ui.scm