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

Bug#510819: libc6: printf incorrectly shows argument with value 0 on conversion %#04hhx and related



Package: libc6
Version: 2.7-16
Severity: normal


Conversion %#04hhx in printf means "convert the argument to a uint8_t (hh) and show it as an hexadecimal number (x) with leading zeros if necessary (0) and a leading 0x prefix (#) in a field of 
total lenght four (4), that is, two places for 0x and two for the argument value".

If the argument is 0 the expected behaviour is to show 0x00 but it shows 0000

With other arguments it works ok.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1                       1:4.3.2-1  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  glibc-doc                     2.7-16     GNU C Library: Documentation
ii  libc6-i686                    2.7-16     GNU C Library: Shared libraries [i
ii  locales                       2.7-16     GNU C Library: National Language (

-- debconf information:
  glibc/upgrade: true
  glibc/restart-failed:
  glibc/restart-services:



Reply to: