Project

General

Profile

Bug #5345

ctype.h is missing tolower_l and toupper_l

Added by Richard PALO over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
2014-11-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

these are defined by posix
http://pubs.opengroup.org/onlinepubs/9699919799/functions/tolower.html
and
http://pubs.opengroup.org/onlinepubs/9699919799/functions/toupper.html

This patch seems to work:
diff --git a/usr/src/head/ctype.h b/usr/src/head/ctype.h
index 47e0d88..3e2d1fb 100644
--- a/usr/src/head/ctype.h
+++ b/usr/src/head/ctype.h
@ -107,6 +107,8 @ extern int ispunct_l(int, locale_t);
extern int isspace_l(int, locale_t);
extern int isupper_l(int, locale_t);
extern int isxdigit_l(int, locale_t);
+extern int tolower_l(int, locale_t);
+extern int toupper_l(int, locale_t);

#endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */

History

#1

Updated by Electric Monk over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 2ae3114cc2c67c8ccb4eecdad806614150ce34fd

commit  2ae3114cc2c67c8ccb4eecdad806614150ce34fd
Author: Richard PALO <richard@NetBSD.org>
Date:   2014-12-01T00:04:02.000Z

    5345 ctype.h is missing tolower_l and toupper_l
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF