[Bug 493220] Re: Rovclock crashes with floating-point exception

2017-03-29 Thread Alexey Dokuchaev
As a naive workaround, the following simple patch would prevent division by zero and SIGFPE: int round_div(int num, int den) { -return (num + (den / 2)) / den; +return den ? (num + (den / 2)) / den : 0; } Reported values now would be zeros, which is certainly wrong, but at least the

[Bug 493220] Re: Rovclock crashes with floating-point exception

2017-03-28 Thread Alexey Dokuchaev
It happens because of division by zero in round_div() function, here's a backtrace from gdb: Program received signal SIGFPE, Arithmetic exception. 0x08048cc4 in round_div (num=0, den=0) at rovclock.c:180 180 return (num + (den / 2)) / den; Current language: auto; currently minimal (gdb)

[Bug 1392699] Re: Can't change locale settings (e.g. language, 12/24-hour time, date format) independently

2015-06-03 Thread Alexey Dokuchaev
By reading ubuntu-system-settings/trunk/plugins/language/language- plugin.cpp source code, it appears that this rather common problem (preferred en_US locale and 24-hour military clock) happens because selected language (translated to locale) is assigned *both* to the Language and FormatsLocale of

[Bug 1434156] Re: [system-settings] developer mode should not require a password

2015-06-02 Thread Alexey Dokuchaev
Totally agree with @jezra on this; it's indeed very annoying and actually prevents me from doing into development mode on my Ubuntu Touch phone. Since currently adb push/pull is the easiest file transfer method (with non-working file sharing via Bluetooth and ssh/scp requiring WiFi connection