[haiku-bugs] [Haiku] #7013: wcscasecmp does not exist on Haiku

  • From: "michaelvoliveira" <trac@xxxxxxxxxxxx>
  • Date: Tue, 21 Dec 2010 17:23:16 -0000

#7013: wcscasecmp does not exist on Haiku
-------------------------------------+-----------------------------
   Reporter:  michaelvoliveira       |       Owner:  nobody
       Type:  bug                    |      Status:  new
   Priority:  normal                 |   Milestone:  R1
  Component:  System/POSIX           |     Version:  R1/Development
   Keywords:  wscasecmp wchar posix  |  Blocked By:
Has a Patch:  0                      |    Platform:  All
   Blocking:                         |
-------------------------------------+-----------------------------
 the wcscasecmp function does not exist on Haiku. As an alternative, some
 other code on the web uses something akin to:

 {{{
 bool compare(const wchar_t* lhs, const wchar_t* rhs) {
   wint_t left, right;
   do {
     left = towlower(*lhs++);
     right = towlower(*rhs++);
   } while (left && left == right);
   return left == right;
 }
 }}}


 we have wcscasecmp.c into /libroot/glib/wcsmbs

 I'm not sure how this should be fixed.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7013>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: