[Bug 1443699] [NEW] zram doesn't start on non-english locale

Nazar Mokrynskyi nazar-pc at yandex.ru
Mon Apr 13 23:52:37 UTC 2015


Public bug reported:

Line:
> totalmem=`free | grep -e "^Mem:" | sed -e 's/^Mem: *//' -e 's/  *.*//'`

of /usr/bin/init-zram-swapping is wrong, because it doesn't account
system locale, in my case Ukrainian, free gives such output:

> nazar-pc at nazar-pc ~> free
>              загалом     використ.  вільна   спільна   буфери      кешовано
> Пам.:    8093264    7917060     176204    1934296         76    3536344
> -/+ буфери/кеш:    4380640    3712624
> Своп.:    6937056          0    6937056

As you can see, instead of "Mem" I have "Пам." here, and correcting
script to that makes zram working, so there is need for better regexp

** Affects: zram-config (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zram-config in Ubuntu.
https://bugs.launchpad.net/bugs/1443699

Title:
  zram doesn't start on non-english locale

Status in zram-config package in Ubuntu:
  New

Bug description:
  Line:
  > totalmem=`free | grep -e "^Mem:" | sed -e 's/^Mem: *//' -e 's/  *.*//'`

  of /usr/bin/init-zram-swapping is wrong, because it doesn't account
  system locale, in my case Ukrainian, free gives such output:

  > nazar-pc at nazar-pc ~> free
  >              загалом     використ.  вільна   спільна   буфери      кешовано
  > Пам.:    8093264    7917060     176204    1934296         76    3536344
  > -/+ буфери/кеш:    4380640    3712624
  > Своп.:    6937056          0    6937056

  As you can see, instead of "Mem" I have "Пам." here, and correcting
  script to that makes zram working, so there is need for better regexp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zram-config/+bug/1443699/+subscriptions



More information about the foundations-bugs mailing list