Revision 4133,
1.6 KB
checked in by daisuke, 13 years ago
(diff) |
initscripts: fix character class syntax in lang.csh
|
Line | |
---|
1 | # /etc/profile.d/lang.csh - set i18n stuff |
---|
2 | |
---|
3 | set sourced=0 |
---|
4 | foreach file (/etc/sysconfig/i18n $HOME/.i18n) |
---|
5 | if ( -f $file ) then |
---|
6 | eval `grep -v '^[[:blank:]]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'` |
---|
7 | endif |
---|
8 | set sourced=1 |
---|
9 | end |
---|
10 | |
---|
11 | if ($?GDM_LANG) then |
---|
12 | set sourced=1 |
---|
13 | set LANG=$GDM_LANG |
---|
14 | endif |
---|
15 | |
---|
16 | if ($sourced == 1) then |
---|
17 | if ($?LC_ALL && $?LANG) then |
---|
18 | if ($LC_ALL == $LANG) then |
---|
19 | unsetenv LC_ALL |
---|
20 | endif |
---|
21 | endif |
---|
22 | if ($?LINGUAS && $?LANG) then |
---|
23 | if ($LINGUAS == $LANG) then |
---|
24 | unsetenv LINGUAS |
---|
25 | endif |
---|
26 | endif |
---|
27 | |
---|
28 | if ($?CHARSET) then |
---|
29 | switch ($CHARSET) |
---|
30 | case 8859-1: |
---|
31 | case 8859-2: |
---|
32 | case 8859-15: |
---|
33 | case koi*: |
---|
34 | case latin2*: |
---|
35 | if ( $?TERM ) then |
---|
36 | if ( "$TERM" == "linux" ) then |
---|
37 | if ( `/sbin/consoletype` == "vt" ) then |
---|
38 | /bin/echo -n -e '\033(K' >/dev/tty |
---|
39 | endif |
---|
40 | endif |
---|
41 | endif |
---|
42 | breaksw |
---|
43 | endsw |
---|
44 | endif |
---|
45 | if ($?SYSFONTACM) then |
---|
46 | switch ($SYSFONTACM) |
---|
47 | case iso01*: |
---|
48 | case iso02*: |
---|
49 | case iso15*: |
---|
50 | case koi*: |
---|
51 | case latin2-ucw*: |
---|
52 | if ( $?TERM ) then |
---|
53 | if ( "$TERM" == "linux" ) then |
---|
54 | if ( `/sbin/consoletype` == "vt" ) then |
---|
55 | /bin/echo -n -e '\033(K' > /dev/tty |
---|
56 | endif |
---|
57 | endif |
---|
58 | endif |
---|
59 | breaksw |
---|
60 | endsw |
---|
61 | endif |
---|
62 | unsetenv SYSFONTACM |
---|
63 | unsetenv SYSFONT |
---|
64 | endif |
---|
65 | |
---|
66 | if ($?LANG) then |
---|
67 | switch ($LANG) |
---|
68 | case ja*: |
---|
69 | case zh*: |
---|
70 | case ko*: |
---|
71 | set dspmpbyte=euc |
---|
72 | breaksw |
---|
73 | endsw |
---|
74 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.