$62 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 84.32.84.164 | ADMIN IP 216.73.216.21
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/etc/profile.d/

HOME
Current File : /etc/profile.d//lang.csh
# /etc/profile.d/lang.csh - exports environment variables, and provides fallback
#                          for CJK languages that can't be displayed in console.

if (${?LANG}) then
    set LANG_backup=${LANG}
endif

foreach config (/etc/locale.conf "${HOME}/.i18n")
    if (-f "${config}") then
        # NOTE: We are using eval & sed here to avoid invoking of any commands & functions from those files.
        eval `/usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/setenv \1 \2;/;t;d' ${config}`
    endif
end

if (${?LANG_backup}) then
    setenv LANG "${LANG_backup}"
endif

unset LANG_backup config

# ----------------------------------------------

# The LC_ALL is not supposed to be set in /etc/locale.conf according to 'man 5 locale.conf'.
# If it is set, then we we expect it is user's explicit override (most likely from ~/.i18n file).
# See 'man 7 locale' for more info about LC_ALL.
if (${?LC_ALL}) then
    if (${LC_ALL} != ${LANG}) then
        setenv LC_ALL
    else
        unsetenv LC_ALL
    endif
endif

# The ${LANG} manipulation is necessary only in virtual terminal (a.k.a. console - /dev/tty*):
set in_console=`/usr/bin/tty | /usr/bin/grep -vc -e '/dev/tty'`

if (${?LANG} && ${?TERM}) then
    if (${TERM} == 'linux' && $in_console == 0) then
        set utf8_used=`echo ${LANG} | /usr/bin/grep -vc -E -i -e '^.+\.utf-?8$'`

        if (${utf8_used} == 0) then
            switch (${LANG})
                case en_IN*:
                    breaksw

                case ja*:
                case ko*:
                case si*:
                case zh*:
                case ar*:
                case fa*:
                case he*:
                case *_IN*:
                    setenv LANG en_US.UTF-8
                    breaksw
            endsw
        else
            switch (${LANG})
                case en_IN*:
                    breaksw
                case ja*:
                case ko*:
                case si*:
                case zh*:
                case ar*:
                case fa*:
                case he*:
                case *_IN*:
                    setenv LANG en_US
                    breaksw
            endsw
        endif

        # NOTE: We are not exporting the ${LANG} here again on purpose.
        #       If user starts GUI session from console manually, then
        #       the previously set LANG should be okay to use.
    endif
endif

unset in_console utf8_used

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Mar 2026 9.00 PM
root / root
0755
alt_mod_passenger.sh
0.054 KB
9 Jul 2025 7.27 PM
root / root
0644
bash_completion.sh
0.648 KB
11 Oct 2019 11.19 PM
root / root
0644
colorgrep.csh
0.191 KB
12 Aug 2018 7.47 AM
root / root
0644
colorgrep.sh
0.196 KB
12 Aug 2018 7.47 AM
root / root
0644
colorls.csh
1.7 KB
1 Apr 2023 6.22 AM
root / root
0644
colorls.sh
1.568 KB
1 Apr 2023 6.22 AM
root / root
0644
colorsysstat.csh
0.067 KB
3 Jul 2024 9.37 AM
root / root
0644
colorsysstat.sh
0.055 KB
3 Jul 2024 9.37 AM
root / root
0644
colorxzgrep.csh
0.158 KB
14 Jun 2022 12.58 PM
root / root
0644
colorxzgrep.sh
0.179 KB
14 Jun 2022 12.58 PM
root / root
0644
colorzgrep.csh
0.211 KB
20 Apr 2022 11.03 AM
root / root
0644
colorzgrep.sh
0.215 KB
20 Apr 2022 11.03 AM
root / root
0644
crontab.sh
0.171 KB
26 Jan 2024 10.44 AM
root / root
0644
csh.local
0.078 KB
15 May 2023 2.46 PM
root / root
0644
debuginfod.csh
0.658 KB
6 Apr 2024 1.39 PM
root / root
0644
debuginfod.sh
0.582 KB
6 Apr 2024 1.39 PM
root / root
0644
gawk.csh
1.081 KB
14 Dec 2017 5.53 PM
root / root
0644
gawk.sh
0.739 KB
14 Dec 2017 5.53 PM
root / root
0644
golang.sh
0.135 KB
12 Aug 2024 5.17 PM
root / root
0644
lang.csh
2.431 KB
15 May 2023 2.46 PM
root / root
0644
lang.sh
2.258 KB
15 May 2023 2.46 PM
root / root
0644
less.csh
0.488 KB
2 Jul 2024 7.57 PM
root / root
0644
less.sh
0.247 KB
2 Jul 2024 7.57 PM
root / root
0644
mc.csh
0.048 KB
18 Oct 2019 8.38 PM
root / root
0644
mc.sh
0.149 KB
18 Oct 2019 8.38 PM
root / root
0644
modules.csh
0.103 KB
14 Oct 2023 6.46 PM
root / root
0644
modules.sh
0.438 KB
14 Oct 2023 6.46 PM
root / root
0644
scl-init.csh
0.277 KB
25 Aug 2017 8.23 AM
root / root
0644
scl-init.sh
0.622 KB
25 Aug 2017 8.23 AM
root / root
0644
sh.local
0.079 KB
15 May 2023 2.46 PM
root / root
0644
vim.csh
0.104 KB
2 Aug 2022 4.57 PM
root / root
0644
vim.sh
0.242 KB
2 Aug 2022 4.57 PM
root / root
0644
which2.csh
0.117 KB
15 Oct 2023 2.13 AM
root / root
0644
which2.sh
0.527 KB
15 Oct 2023 2.13 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF