Project

General

Profile

Bug #1314 » ctype.sh.diff

Yuri Pankov, 2011-08-03 12:27 PM

View differences:

usr/src/cmd/localedef/data/ctype.sh Fri Jul 29 15:38:48 2011 -0700 → usr/src/cmd/localedef/data/ctype.sh Wed Aug 03 16:24:23 2011 +0400
26 26
	toupper tolower; do
27 27
	# sed can't match both range patterns on the same line so we just make
28 28
	# it look like valid multiline class by duplicating the definition
29
	sed -E "/^$i.*>$/ {
29
	sed "/^$i.*>$/ {
30 30
		s,$,;/,
31 31
		h
32
		s,^$i(.*>);/$,\1,
32
		s,^$i\(.*>\);/$,\1,
33 33
		H
34 34
		x
35 35
	}" $@ |\
36
	sed -E -n "/^$i/,/(>|\))$/ {
36
	sed -n "/^$i/,/\([>)]\)$/ {
37 37
		s,^$i,,
38
		s,(>|\))$,\1;/,
38
		s,\([>)]\)$,\1;/, 
39 39
		/^$/d
40 40
		p
41 41
	}" |\
42 42
	sort -u |\
43
	sed -E "1 s,^,$i,;$ s,(>|\));/,\1,"
43
	sed "1 s,^,$i,;$ s,\([>)]\);/,\1,"
44 44
done
45 45

  
46 46
printf "\nEND LC_CTYPE\n"
(1-1/2)