This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1002110] vfscanf does not support "hh" conversion
- From: bugzilla-daemon at ecoscentric dot com
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Tue, 08 Dec 2015 20:44:29 +0000
- Subject: [Bug 1002110] vfscanf does not support "hh" conversion
- Authentication-results: sourceware.org; auth=none
- Authentication-results: mail.ecoscentric.com; dkim=permerror (bad message/signature format)
- Auto-submitted: auto-generated
- Dkim-filter: OpenDKIM Filter v2.10.3 mail.ecoscentric.com 941D0A872A9
- References: <bug-1002110-777 at http dot bugs dot ecos dot sourceware dot org/>
Please do not reply to this email, use the link below.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1002110
Jonathan Larmour <jifl@ecoscentric.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|high |low
Status|UNCONFIRMED |RESOLVED
CC| |jifl@ecoscentric.com
Resolution|--- |WONTFIX
Severity|critical |enhancement
--- Comment #1 from Jonathan Larmour <jifl@ecoscentric.com> ---
The eCos C library was written to the ISO C 90 standard. The 'hh' size
specifier was added in the C99 standard. We do not have C99 support in this and
many other ways. So indeed %hhx would fail. Adding 'hh' support, along with
other C99 additions would be quite an enhancement, and is considered a low
priority at this time.
I suggest you use %c with the first element of a two char string (so you can
have a NULL terminator) followed by a call to strtoul() with base 16.
I'm marking this WONTFIX for now, although I'd have no problem with a tested
patch if one appeared.
Jifl
--
You are receiving this mail because:
You are the assignee for the bug.