head	1.3;
access;
symbols
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2002.03.31.09.47.02;	author clive;	state dead;
branches;
next	1.2;

1.2
date	2002.03.06.03.29.13;	author clive;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.09.18.07.00;	author clive;	state Exp;
branches;
next	;


desc
@@


1.3
log
@o Convert po from utf-8 to big5.
o Handle LC_* properly.
o Bump PORTREVISION.

PR:	ports/35728
Submitted by:	Yen-Ming Lee <leeym@@utopia.leeym.com>
@
text
@@


1.2
log
@o Update zhcon to version 0.2.
o Add zh_TW.Big5 po messages.
o Remove big5 IME extra-patches and merge it into standard FreeBSD patches.

PR:		ports/35271
Submitted by:	Yen-Ming Lee <leeym@@leeym.com>
@
text
@@


1.1
log
@Add a patch to avoid "mmap() failed!" message for non-root users.

PR: ports/30457
Submitted by: Yen-Ming Lee <leeym@@utopia.leeym.com>
@
text
@a0 28
--- zhcon/bsdfactory.cpp.orig	Sun Sep  9 13:19:32 2001
+++ zhcon/bsdfactory.cpp	Sun Sep  9 13:54:13 2001
@@@@ -102,11 +102,24 @@@@
     }
 
     printf ("len %d\n", buflen);
+#if (__FreeBSD__ <= 3)
     if ((vga = open("/dev/vga", O_RDWR | O_NDELAY)) < 0) {
+#else
+    if ((vga = open("/dev/mem", O_RDWR | O_NDELAY)) < 0) {
+#endif
 	throw(runtime_error("Can not open vga device.\n"));
     }
 
-    buf = static_cast<char *>(mmap(0, buflen, PROT_READ | PROT_WRITE, MAP_SHARED, vga, 0));
+    if ((buf = static_cast<char *>(valloc(buflen))) == NULL) {
+        throw(runtime_error("Can not open vga device.\n"));
+    }
+
+#if (__FreeBSD__ <= 3)
+#define GRAPH_BASE 0x0
+#else
+#define GRAPH_BASE 0xA0000
+#endif
+    buf = static_cast<char *>(mmap(buf, buflen, PROT_READ | PROT_WRITE, MAP_FILE|MAP_SHARED|MAP_FIXED, vga, GRAPH_BASE));
     close(vga);
 
     if (buf == MAP_FAILED)
@

