[Pkg-zsh-devel] Bug#888854: zsh: printf truncates large values

Vincent Lefevre vincent at vinc17.net
Tue Jan 30 17:00:19 UTC 2018


Package: zsh
Version: 5.4.2-3
Severity: normal
Tags: upstream
Forwarded: http://www.zsh.org/mla/workers/2018/msg00138.html

cventin% printf "%x\n" 10865468317030705979
zsh: number truncated after 19 digits: 10865468317030705979
f1430962f7cd785

There's no reason to truncate the value on a 64-bit machine!

The printf from GNU coreutils is correct:

cventin% /usr/bin/printf "%x\n" 10865468317030705979
96c9e5dddae06b3b

-- Package-specific info:

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  curl           7.58.0-2     amd64        command line tool for transferrin
ii  pulseaudio     11.1-4       amd64        PulseAudio sound server
ii  systemd        236-3        amd64        system and service manager
ii  udev           236-3        amd64        /dev/ and hotplug management daem
ii  vlc-bin        3.0.0~rc7-2  amd64        binaries from VLC

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zsh depends on:
ii  libc6       2.26-6
ii  libcap2     1:2.25-1.2
ii  libtinfo5   6.0+20171125-1
ii  zsh-common  5.4.2-3

Versions of packages zsh recommends:
ii  libc6         2.26-6
ii  libncursesw5  6.0+20171125-1
ii  libpcre3      2:8.39-8

Versions of packages zsh suggests:
ii  zsh-doc  5.4.2-3

-- no debconf information



More information about the Pkg-zsh-devel mailing list