Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD

@@ -1,6 +1,7 @@
 /*
+ * Copyright 2013 Garrett D'Amore <garrett@damore.org>
  * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  * Copyright (c) 1993
  *      The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by

@@ -35,15 +36,15 @@
 #include <ctype.h>
 #include <stdio.h>
 #include "runetype.h"
 
 unsigned int
-___runetype(__ct_rune_t c)
+__runetype(const _RuneLocale *rl, __ct_rune_t c)
 {
         size_t lim;
-        _RuneRange *rr = &_CurrentRuneLocale->__runetype_ext;
-        _RuneEntry *base, *re;
+        const _RuneRange *rr = &rl->__runetype_ext;
+        const _RuneEntry *base, *re;
 
         if (c < 0 || c == EOF)
                 return (0L);
 
         /* Binary search -- see bsearch.c for explanation. */