From 5ddf101fbd3f9b8887bd44f8d754f3da0e7e850e Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Thu, 5 Oct 2017 12:52:38 -0400 Subject: [PATCH] storage: Add TODO to avoid locale issues --- plinth/modules/storage/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/storage/views.py b/plinth/modules/storage/views.py index 1d6af98f4..d1094082f 100644 --- a/plinth/modules/storage/views.py +++ b/plinth/modules/storage/views.py @@ -104,6 +104,7 @@ def warn_about_low_disk_space(request): def _interpret_size_string(size_str): """Convert size string to number of bytes.""" + # TODO: Drop --human-readable from df command (github issue #1043) size_str = size_str.replace(',', '.') # some locales use commas size_str = size_str.replace('٫', '.') # arabic decimal separator if size_str[-1] in '0123456789':