gcc484perl-5.22
Last change
on this file since 402b138 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:
982 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/sh |
---|
| 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. |
---|
| 19 | if echo $LANG | grep -iq UTF ; then |
---|
| 20 | export G_FILENAME_ENCODING="@locale" |
---|
| 21 | fi |
---|
| 22 | |
---|
| 23 | # It doesn't hurt to export this since G_FILENAME_ENCODING takes priority |
---|
| 24 | # over G_BROKEN_FILENAMES: |
---|
| 25 | export G_BROKEN_FILENAMES=1 |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.