~ubuntu-branches/debian/sid/inkscape/sid

« back to all changes in this revision

Viewing changes to packaging/macosx/Resources/bin/inkscape

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-06-21 15:13:32 UTC
  • mfrom: (10.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130621151332-uo22shomzjut843h
Tags: 0.48.4-1
* Upload to unstable
* debian/control: added myself to Uploaders
* debian/patches/: patchset updated
  - 04-Fix_FTBFS_on_gcc-4.8.patch added (Closes: #701297)

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
# If the AppleCollationOrder preference doesn't exist, we fall back to using
115
115
# the AppleLocale preference.
116
116
LANGSTR=`defaults read .GlobalPreferences AppleCollationOrder 2>/dev/null`
117
 
if [ "x$LANGSTR" == "x" ]
 
117
if [ "x$LANGSTR" == "x" -o "x$LANGSTR" == "xroot" ]
118
118
then
119
119
    echo "Warning: AppleCollationOrder setting not found, using AppleLocale." 1>&2
120
120
    LANGSTR=`defaults read .GlobalPreferences AppleLocale 2>/dev/null | \
121
121
            sed 's/_.*//'`
 
122
        echo "Setting LANGSTR from AppleLocale: $LANGSTR" 1>&2
 
123
else
 
124
        echo "Setting LANGSTR from AppleCollationOrder: $LANGSTR" 1>&2
122
125
fi
123
126
 
124
127
# NOTE: Have to add ".UTF-8" to the LANG since omitting causes Inkscape
125
128
#       to crash on startup in locale_from_utf8().
126
 
export LANG="`grep \"\`echo $LANGSTR\`_\" /usr/share/locale/locale.alias | \
127
 
        tail -n1 | sed 's/\./ /' | awk '{print $2}'`.UTF-8"
 
129
if [ "x$LANGSTR" == "x" ]
 
130
then 
 
131
        # override broken script
 
132
        echo "Overriding empty LANGSTR" 1>&2
 
133
        export LANG="en_US.UTF-8"
 
134
else
 
135
        tmpLANG="`grep \"\`echo $LANGSTR\`_\" /usr/share/locale/locale.alias | \
 
136
                tail -n1 | sed 's/\./ /' | awk '{print $2}'`"
 
137
        if [ "x$tmpLANG" == "x" ]
 
138
        then
 
139
                # override broken script
 
140
                echo "Overriding empty LANG from /usr/share/locale/locale.alias" 1>&2
 
141
                export LANG="en_US.UTF-8"
 
142
        else
 
143
                echo "Setting LANG from /usr/share/locale/locale.alias" 1>&2
 
144
                export LANG="$tmpLANG.UTF-8"
 
145
        fi
 
146
fi
128
147
echo "Setting Language: $LANG" 1>&2
129
148
 
130
149
sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > "${HOME}/.inkscape-etc/pangorc"