manila/releasenotes/notes/bug-1714691-decimal-separators-in-locales-392c0c794c49c1c2.yaml
Dustin Schoenbrun 8800e54f77 Fix issue with different decimal separators
An issue was discovered in the ZFSonLinux driver wherein on a system
set to have a locale where the decimal separator is not a period but
rather a comma the method translate_string_size_to_float() would fail
because it's regex to find sizes in strings did not account for any
other decimal separators other than periods.

This fix updates the regular expression to accept either a period or
a comma as a decimal separator in a size string.

Many thanks to Dr. Clemens Hardewig for reporting the original bug
and providing an updated regular expression.

Change-Id: I15da4aaff90814eed03816db013d6acc89ba2ee8
Closes-Bug: #1714691
2017-10-26 17:24:04 -04:00

6 lines
212 B
YAML

---
fixes:
- Fixed issue where locales other than POSIX and en_US.UTF-8 might
cause the translate_string_size_to_float method to fail on a
comma decimal separator instead of a period decimal separator.