Add support for FreeBSD locales. This will fix numerous segmentation

faults with programs that depend on libunicode.  Bump PORTREVISION.

PR:		38901
This commit is contained in:
Joe Marcus Clarke 2002-06-05 06:49:40 +00:00
parent 6db426f2fb
commit 67e59b4617
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60637
3 changed files with 23 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= libunicode
PORTVERSION= 0.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= unstable/sources/libunicode

View file

@ -0,0 +1,11 @@
--- iso8859.c.orig Fri Oct 29 15:15:19 1999
+++ iso8859.c Wed Jun 5 02:43:26 2002
@@ -271,6 +271,8 @@
#define ISO_DEFINE(Num) \
static char * n ## Num [] = { "8859-" # Num, \
"ISO-8859-" # Num, \
+ "ISO_8859-1" # Num, \
+ "ISO8859-" # Num, \
NULL }; \
unicode_encoding_t P3 (unicode_iso8859_, Num, _encoding) = \
{ \

View file

@ -0,0 +1,11 @@
--- latin1.c.orig Wed Jun 5 02:41:15 2002
+++ latin1.c Wed Jun 5 02:41:34 2002
@@ -89,7 +89,7 @@
}
/* The encoding descriptor for Latin1. */
-static char *l1n[] = { "8859-1", "ISO-8859-1", NULL };
+static char *l1n[] = { "8859-1", "ISO8859-1", "ISO_8859-1", "ISO-8859-1", NULL };
unicode_encoding_t unicode_latin1_encoding =
{
l1n,