15760N/A#!/bin/sh
15760N/A#
15760N/A# CDDL HEADER START
15760N/A#
15760N/A# The contents of this file are subject to the terms of the
15760N/A# Common Development and Distribution License, Version 1.0 only
15760N/A# (the "License"). You may not use this file except in compliance
15760N/A# with the License.
15760N/A#
15760N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15760N/A# or http://www.opensolaris.org/os/licensing.
15760N/A# See the License for the specific language governing permissions
15760N/A# and limitations under the License.
15760N/A#
15760N/A# When distributing Covered Code, include this CDDL HEADER in each
15760N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15760N/A# If applicable, add the following below this CDDL HEADER, with the
15760N/A# fields enclosed by brackets "[]" replaced with your own identifying
15760N/A# information: Portions Copyright [yyyy] [name of copyright owner]
15760N/A#
15760N/A# CDDL HEADER END
15760N/A#
15760N/A#
15760N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
15760N/A# Use is subject to license terms.
15760N/A#
15760N/A
15760N/A
15760N/Aif [ "x$LC_ALL" = x -a "x$LANG" = x -o "x$LANG" = xC ]; then
15760N/A :
15760N/Aelse
15760N/A# Uncomment if you need 6757628
15760N/A# European locales have LC_MESSAGES=C in /etc/default/init
15760N/A# LC_MESSAGES=$LANG; export LC_MESSAGES
15760N/A :
15760N/Afi
15760N/A
15760N/A# To determine the character set used for filenames with
15760N/A# glib's g_filename_to/from_utf8() functions, we set the
15760N/A# environment variables G_FILENAME_ENCODING and G_BROKEN_FILENAMES.
15760N/A#
15760N/A# G_BROKEN_FILENAMES, when set, lets the functions take the
15760N/A# character set for the current locale for filename's encoding.
15760N/A#
15760N/A# G_FILENAME_ENCODING, which is introduced to glib 2.3.x and later, may be
15760N/A# set to a comma-separated list of character set names.
15760N/A# The special token "@locale" is taken to mean the character set
15760N/A# for the current locale. The first character set from the list is taken
15760N/A# as the filename encoding.
15760N/A#
15760N/A# If G_FILENAME_ENCODING is not set, but G_BROKEN_FILENAMES is, the
15760N/A# character set of the current locale is taken as the filename encoding.
15760N/A
15760N/AG_BROKEN_FILENAMES=yes
15760N/Aexport G_BROKEN_FILENAMES
15760N/AG_FILENAME_ENCODING=@locale,UTF-8
15760N/Aexport G_FILENAME_ENCODING
15760N/A
15760N/A# Fixes 6583891
15760N/Acase $LANG in
15760N/Aja*) VTE_CJK_WIDTH=1; export VTE_CJK_WIDTH;;
15760N/Ako*) VTE_CJK_WIDTH=1; export VTE_CJK_WIDTH;;
15760N/Azh*) VTE_CJK_WIDTH=1; export VTE_CJK_WIDTH;;
15760N/A*) ;;
15760N/Aesac
15760N/A
15760N/A# Fixes 6555226
15760N/Aif [ "x$LANG" = "xzh" ] ; then
15760N/A LANGUAGE=zh:zh_CN.EUC
15760N/A export LANGUAGE
15760N/Afi
15760N/A
15760N/A# Locale specific .desktop files
15760N/Aif [ -d /usr/share/locale/$LANG/xdg ] ; then
15760N/A XDG_DATA_DIRS=${XDG_DATA_DIRS:-"/usr/share"}
15760N/A XDG_DATA_DIRS=${XDG_DATA_DIRS}:/usr/share/locale/$LANG/xdg
15760N/A export XDG_DATA_DIRS
15760N/Afi
15760N/A
17971N/Aif [ -x /usr/bin/xdg-user-dirs-update ]; then
17971N/A /usr/bin/xdg-user-dirs-update
17971N/Afi