source: npl/X/glib2/libglib2.csh @ 51c3d1a

perl-5.22
Last change on this file since 51c3d1a was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 999 bytes
RevLine 
[c5c522c]1#!/bin/csh
2#
3# Description:  This script sets the environment variables G_FILENAME_ENCODING
4# and G_BROKEN_FILENAMES for the glib-2.0 library.
5#
6# G_FILENAME_ENCODING
7#       This environment variable can be set to a comma-separated list of
8#       character set names.  GLib assumes that filenames are encoded in the
9#       first character set from that list rather than in UTF-8.  The special
10#       token "@locale" can be used to specify the character set for the
11#       current locale.
12#
13# G_BROKEN_FILENAMES
14#       If this environment variable is set, GLib assumes that filenames are
15#       in the locale encoding rather than in UTF-8.
16
17# If the LANG you have set contains any form of "UTF", we will guess you are
18# using a UTF-8 locale.  Hopefully we're correct.
19echo $LANG | grep -iq UTF
20if ($status == 0) then
21  setenv G_FILENAME_ENCODING "@locale"
22endif
23
24# It doesn't hurt to export this since G_FILENAME_ENCODING takes priority
25# over G_BROKEN_FILENAMES:
26setenv G_BROKEN_FILENAMES 1
27
Note: See TracBrowser for help on using the repository browser.