[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839280: marked as done (libc6: asprintf(&c, "%F", 1.0) puts 0.00000 in c on raspberry pi zero v1.3.)



Your message dated Sat, 01 Oct 2016 17:31:33 +0200
with message-id <87twcwuluy.fsf@mid.deneb.enyo.de>
and subject line Re: Bug#839280: libc6: asprintf(&c, "%F", 1.0) puts 0.00000 in c on raspberry pi zero v1.3.
has caused the Debian Bug report #839280,
regarding libc6: asprintf(&c, "%F", 1.0) puts 0.00000 in c on raspberry pi zero v1.3.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
839280: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839280
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.19-18+deb8u6
Severity: normal

Dear Maintainer,

   * What led up to the situation? I was building a robot, and needed a raspberry pi zero to send a floating point number formatted as a string to an arduino.
   * What exactly did you do (or not do) that was effective (or
     ineffective)? I've tried passing bigger numbers than 1.0 (like 100.0) , but it didn't seem to do anything different, "%F %F" does however seem to get the second argument right.
   * What was the outcome of this action? It printed out something like: -0.000000001 1.0 
   * What outcome did you expect instead? 1.0 0.0
   Also I'm sorry if I'm doing something wrong in the bug reporting process, this is my first time using this reportbug program.



-- System Information:
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 8.0 (jessie)
Release:	8.0
Codename:	jessie
Architecture: armv6l

Kernel: Linux 4.4.21+
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libc6 depends on:
ii  libgcc1  1:4.9.2-10

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]  1.5.56
pn  glibc-doc              <none>
ii  locales                2.19-18+deb8u6

-- debconf information:
  libraries/restart-without-asking: false
  glibc/disable-screensaver:
  glibc/restart-services:
  glibc/upgrade: true
  glibc/restart-failed:

--- End Message ---
--- Begin Message ---
* Noah Williams:

> Package: libc6
> Version: 2.19-18+deb8u6
> Severity: normal
>
> Dear Maintainer,
>
>    * What led up to the situation? I was building a robot, and needed a raspberry pi zero to send a floating point number formatted as a string to an arduino.
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)? I've tried passing bigger numbers than 1.0 (like 100.0) , but it didn't seem to do anything different, "%F %F" does however seem to get the second argument right.
>    * What was the outcome of this action? It printed out something like: -0.000000001 1.0 
>    * What outcome did you expect instead? 1.0 0.0
>    Also I'm sorry if I'm doing something wrong in the bug reporting process, this is my first time using this reportbug program.

Further off-bug discussion revealed that it was a case of a
-Wimplicit-function-declaration warning and a missing prototype.
The test program was compiled without _GNU_SOURCE.

--- End Message ---

Reply to: