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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/port/locale/table.c
          +++ new/usr/src/lib/libc/port/locale/table.c
   1    1  /*
        2 + * Copyright 2013 Garrett D'Amore <garrett@damore.org>
   2    3   * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
   3    4   * Copyright (c) 1993
   4    5   *      The Regents of the University of California.  All rights reserved.
   5    6   *
   6    7   * This code is derived from software contributed to Berkeley by
   7    8   * Paul Borman at Krystal Technologies.
   8    9   *
   9   10   * Redistribution and use in source and binary forms, with or without
  10   11   * modification, are permitted provided that the following conditions
  11   12   * are met:
↓ open down ↓ 241 lines elided ↑ open up ↑
 253  254          0xd0,   0xd1,   0xd2,   0xd3,   0xd4,   0xd5,   0xd6,   0xd7,
 254  255          0xd8,   0xd9,   0xda,   0xdb,   0xdc,   0xdd,   0xde,   0xdf,
 255  256          0xe0,   0xe1,   0xe2,   0xe3,   0xe4,   0xe5,   0xe6,   0xe7,
 256  257          0xe8,   0xe9,   0xea,   0xeb,   0xec,   0xed,   0xee,   0xef,
 257  258          0xf0,   0xf1,   0xf2,   0xf3,   0xf4,   0xf5,   0xf6,   0xf7,
 258  259          0xf8,   0xf9,   0xfa,   0xfb,   0xfc,   0xfd,   0xfe,   0xff,
 259  260          },
 260  261          /* END CSTYLED */
 261  262  };
 262  263  
 263      -_RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale;
 264      -
 265  264  /* Taken from former _ctype.c */
 266  265  unsigned int *__ctype_mask = _DefaultRuneLocale.__runetype;
 267  266  
 268  267  int *__trans_lower = _DefaultRuneLocale.__maplower;
 269  268  int *__trans_upper = _DefaultRuneLocale.__mapupper;
 270      -
 271      -/*
 272      - * Used in various string routines to conditionalize versions optimized for
 273      - * the ASCII case
 274      - */
 275      -int charset_is_ascii = 1;
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX