localedef: missing characters for an ellipsis in LC_CTYPE
---------------------------------------------------------

                 Key: STDCXX-860
                 URL: https://issues.apache.org/jira/browse/STDCXX-860
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 4.2.0
            Reporter: Martin Sebor
            Priority: Critical
             Fix For: 4.2.2


The {{localedef}} utility appears to skip characters specified using the 
ellipsis in the {{LC_CTYPE}} section. The output below was obtained on Solaris 
10 (the "couldn't set locale correctly" messages are written out by libc). The 
number of characters specified in the {{ctype.src}} source file is 6 ('a', 'b', 
'c', 'd', 'e', and 'f'). The output of the {{locale}} utility shows that the 
generated locale contains only the last three characters ('d', 'e', and 'f').

{noformat}
$    cat ctype.src; rm -rf ctype; \
     ./localedef -c -w -f ~/stdcxx/etc/nls/charmaps/ISO-8859-1 -i ctype.src 
ctype \
  && LC_ALL=ctype ./locale -ck -h -w -l LC_CTYPE
LC_CTYPE
graph a..c;d;e;f
END LC_CTYPE

couldn't set locale correctly
couldn't set locale correctly
LC_CTYPE
# ctype data:
#   codeset: "ISO-8859-1"
#   charmap: "ISO-8859-1"
#   codeset_off: 24
#   charmap_off: 35
#   wmask_s: 3
#   wtoupper_off: 0
#   wtolower_off: 0
#   wmask_off: 0
#   ctype_ext_off: 0
#   mb_cur_max: 1
upper couldn't set locale correctly

lower 
space 
print 
cntrl 
alpha 
digit 
punct 
graph d;e;f
xdigit 
toupper 
tolower 

# ctype stats:
#   total characters: 3
#   upper characters: 0
#   lower characters: 0
#   space characters: 0
#   print characters: 0
#   cntrl characters: 0
#   alpha characters: 0
#   digit characters: 0
#   punct characters: 0
#   graph characters: 3
#   xdigit characters: 0
#   unclassified: 0
#   tolower pairs: 0
#   toupper pairs: 0
END LC_CTYPE
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to