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