Project

General

Profile

Actions

Bug #331

open

libtecla should not use legacy ctype.h macros

Added by Garrett D'Amore about 13 years ago. Updated over 11 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
Gerrit CR:
External Bug:

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.

Actions #1

Updated by Garrett D'Amore about 13 years ago

  • Category set to lib - userland libraries
Actions #2

Updated by Milan Jurik over 11 years ago

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

libtecla upstream is dead for 8 years

Actions

Also available in: Atom PDF