-
Notifications
You must be signed in to change notification settings - Fork 5.2k
printf problems with negative numbers after latest update #1800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not seeing this myself and it doesn't sound like a linux kernel issue.
|
What language are you writing in? Regardless of the answer, posting a minimal example program will save time. [ I'm currently wondering if your '-' is really a minus sign ] |
I believe it is just bash. But it works for me.
An incorrect minus would give that error:
|
Yup, some wordpress templates, for example, like to replace symbols with ones which look identical.
|
done sudo apt-get update && sudo apt-get dist-upgrade Did not help on the reported respeberry pi. But tried on an other pi and strange enoug this Works: THIS PI INFO: cat /etc/os-release lsb_release -a To XECDesign I will investigate symbol problems on the box - THANS for all the anwsers :-) |
Can you run
(typing in the minus, rather than copying pasting it) |
You beat me to it - mine was:
|
Thanks for all the help - I found the "bag guy" = language problems ??? Both On the box with the problem I run sudo raspi-config and removed "da_DK.UTF-8 UTF-8 " now only "LANG=en_GB.UTF-8" remains It required a reboot before all was in place, so now :/home/pi# printf '%.1f\n' -3.2 THANS for all the anwsers, Kenzon :-) |
You can close the issue, Kenzon |
A few days ago I updated my respeberry pi 2 with normal updates.
Now printf '%.1f\n' -3.2
gives errors (= invalid number) regarding negative numbers, BEFORE update there was no problems.
PI INFO:
uname -a
Linux 01 4.4.32-v7+ #924 SMP Tue Nov 15 18:11:28 GMT 2016 armv7l GNU/Linux
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
The text was updated successfully, but these errors were encountered: