Issue Details (XML | Word | Printable)

Key: STDCXX-860
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

localedef: missing characters for an ellipsis in LC_CTYPE

Created: 12/Apr/08 09:57 PM   Updated: 12/Apr/08 10:28 PM
Return to search
Component/s: Utilities
Affects Version/s: 4.2.0
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 4h
Original Estimate - 4h
Remaining Estimate: 3h
Time Spent - 1h Remaining Estimate - 3h
Time Spent: 1h
Time Spent - 1h Remaining Estimate - 3h

Severity: Incorrect Behavior


 Description  « Hide
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').
$    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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.