Opened 13 years ago

Closed 12 years ago

#7013 closed bug (fixed)

wcscasecmp does not exist on Haiku

Reported by: michaelvoliveira Owned by: zooey
Priority: normal Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: wscasecmp wchar posix Cc:
Blocked By: Blocking:
Platform: All

Description

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.

Change History (3)

comment:1 by anevilyak, 13 years ago

Owner: changed from nobody to zooey
Status: newassigned

comment:2 by michaelvoliveira, 13 years ago

ping

comment:3 by zooey, 12 years ago

Resolution: fixed
Status: assignedclosed

Along with a couple of other wchar-related functions, wcscasecmp() has been added in hrev43641.

Note: See TracTickets for help on using tickets.