Project

General

Profile

Bug #331

libtecla should not use legacy ctype.h macros

Added by Garrett D'Amore about 9 years ago. Updated over 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
lib - userland libraries
Start date:
2010-10-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The older macro versions of ctype.h tests are poor, as they lack good support for certain characters, especially in foreign character sets. See bug #330 for an example. (The legacy version only supports 8 bits of type data.)

The better solution would be to either use functional versions, or -D_XPG4 to use slightly better macro versions. Of course long term, the code should support multi-byte character sets, perhaps using wide character versions of the macros (iswtype() or iswprint()) to gain maximum support for multibyte locales.

This should probably be coordinated with the upstream source for libtecla, as well.

History

#1

Updated by Garrett D'Amore about 9 years ago

  • Category set to lib - userland libraries
#2

Updated by Milan Jurik over 7 years ago

  • Difficulty set to Medium
  • Tags set to needs-triage

libtecla upstream is dead for 8 years

Also available in: Atom PDF