diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-07-15 19:10:59 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-07-15 19:10:59 +0000 |
commit | cc6825cf28f45c090747ed100adeb2189bda6280 (patch) | |
tree | 227c9e7f8d44c0aaf556fd64a12ba3661c086be6 /x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c | |
parent | Remove nautilus support now that Nautilus has been removed from the tree. (diff) |
Begin the de-orbit burn of the GNOME 1.4 desktop. This is phase I. All
core desktop components are being removed.
Notes
Notes:
svn path=/head/; revision=84934
Diffstat (limited to 'x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c')
-rw-r--r-- | x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c b/x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c deleted file mode 100644 index c47d0202fcd1..000000000000 --- a/x11-fm/nautilus/files/patch-libnautilus-private::nautilus-desktop-file-loader.c +++ /dev/null @@ -1,60 +0,0 @@ - -$FreeBSD$ - ---- libnautilus-private/nautilus-desktop-file-loader.c.orig Wed Sep 26 19:37:15 2001 -+++ libnautilus-private/nautilus-desktop-file-loader.c Fri Mar 29 14:58:54 2002 -@@ -39,7 +39,9 @@ - #include <ctype.h> - #include <locale.h> - #include <iconv.h> -+#if (defined __FreeBSD__) && (__FreeBSD_version > 450001) - #include <langinfo.h> -+#endif - - typedef struct NautilusDesktopFileSection NautilusDesktopFileSection; - typedef struct NautilusDesktopFileAddition NautilusDesktopFileAddition; -@@ -117,6 +119,44 @@ - const char *value); - static void addition_free (NautilusDesktopFileAddition *addition); - -+#if (defined __FreeBSD__) && (__FreeBSD_version < 450001) -+/* Quick and dirty implementation of nl_langinfo(CODESET) */ -+static char * -+nl_langinfo(void) { -+ char *ret, *s, *cs; -+ static char *cset = NULL; -+ -+ ret = ""; -+ if ((s = setlocale(LC_CTYPE, NULL)) != NULL) { -+ if ((cs = strchr(s, '.')) != NULL) { -+ ret = cs + 1; -+ if (strncmp(ret, "ISO_", 4) == 0) { -+ int slen = strlen(ret); -+ -+ if ((cset = reallocf(cset, slen)) != NULL) { -+ strcpy(cset, "ISO"); -+ strcat(cset, ret + 4); -+ ret = cset; -+ } else -+ ret = ""; -+ } else if (strcmp(ret, "EUC") == 0) { -+ if (strncmp(s, "ja_JP", 5) == 0) -+ ret = "eucJP"; -+ else if (strncmp(s, "ko_KR", 5) == 0) -+ ret = "eucKR"; -+ else if (strncmp(s, "zh_CN", 5) == 0) -+ ret = "eucCN"; -+ } else if (strcmp(ret, "ASCII") == 0) -+ ret = "US-ASCII"; -+ } else if (strcmp(s, "C") == 0 || -+ strcmp(s, "POSIX") == 0 -+ || strstr(s, "ASCII") != NULL) -+ ret = "US-ASCII"; -+ } -+ return ret; -+} -+#define nl_langinfo(x) nl_langinfo() -+#endif - - static NautilusDesktopFile* - nautilus_desktop_file_new (void) |