source: projects/initscripts/tags/initscripts-8.91.3/profile.d/lang.csh @ 1108

Revision 1108, 1.6 KB checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
1# /etc/profile.d/lang.csh - set i18n stuff
2
3set sourced=0
4foreach 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
9end
10
11if ($?GDM_LANG) then
12    set sourced=1
13    set LANG=$GDM_LANG
14endif
15
16if ($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
64endif
65
66if ($?LANG) then
67    switch ($LANG)
68        case ja*:
69        case zh*:
70        case ko*:
71             set dspmpbyte=euc
72             breaksw
73    endsw
74endif
Note: See TracBrowser for help on using the repository browser.