From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 2 00:10:03 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B59B316A4CE for ; Fri, 2 Apr 2004 00:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97F1C43D46 for ; Fri, 2 Apr 2004 00:10:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i328A3bv085180 for ; Fri, 2 Apr 2004 00:10:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i328A3S5085179; Fri, 2 Apr 2004 00:10:03 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 2 Apr 2004 00:10:03 -0800 (PST) Resent-Message-Id: <200404020810.i328A3S5085179@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hung-Te Lin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 096F616A4CE for ; Fri, 2 Apr 2004 00:04:04 -0800 (PST) Received: from ms.csie.ntu.edu.tw (ms.csie.ntu.edu.tw [140.112.30.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAE3D43D41 for ; Fri, 2 Apr 2004 00:04:03 -0800 (PST) (envelope-from r91034@ms.csie.ntu.edu.tw) Received: from localhost (localhost.csie.ntu.edu.tw [127.0.0.1]) by ms.csie.ntu.edu.tw (Postfix) with ESMTP id 9C29DFEB5 for ; Fri, 2 Apr 2004 16:04:00 +0800 (CST) Received: from ntucsa.csie.ntu.edu.tw (ntucsa.csie.ntu.edu.tw [140.112.30.18]) by ms.csie.ntu.edu.tw (Postfix) with ESMTP id 74787FEAE for ; Fri, 2 Apr 2004 16:03:59 +0800 (CST) Received: (from r91034@localhost) by ntucsa.csie.ntu.edu.tw (8.8.8+Sun/8.8.8) id QAA24639 for FreeBSD-gnats-submit@freebsd.org; Fri, 2 Apr 2004 16:03:58 +0800 (CST) Message-Id: <20040402080358.GA24562@ntucsa.csie.ntu.edu.tw> Date: Fri, 2 Apr 2004 16:03:58 +0800 From: Hung-Te Lin To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/65062: Update port: chinese/mldonkey-core for broken LC_CTYPE support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 08:10:03 -0000 >Number: 65062 >Category: ports >Synopsis: Update port: chinese/mldonkey-core for broken LC_CTYPE support >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Apr 02 00:10:03 PST 2004 >Closed-Date: >Last-Modified: >Originator: Hung-Te Lin >Release: FreeBSD 5.2-CURRENT i386 >Organization: Communication & Multimedia Lab, NTU, Taiwan >Environment: System: FreeBSD cml4.csie.ntu.edu.tw 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Fri Mar 12 04:59:55 CST 2004 root@cml4.csie.ntu.edu.tw:/usr/obj/usr/src/sys/cml4 i386 >Description: Update port: chinese/mldonkey-core for upgrading for broken LC_CTYPE 1 file (files/wrapper-prefix) is added in this patch. This is often seen by people with LC_CTYPE=zh_TW.Big5, then they'll have every DBCS characters showing in \xxx format (aka. escaped). According to OCAML FAQ/Mailing list, this is painful by OCAML so people wrote some 'stub' loaders to overcome some locale problems like LC_NUMERIC. Focused on mldonkey, we have only to specify LC_CTYPE so we're not touching/rebuilding the whole OCAML but to prefix the loader (mlnet shell script) to use working LC_CTYPE. >How-To-Repeat: env LC_CTYPE=zh_TW.Big5 mlnet & go download some DBCS (eg, Big5) files and then vr, vd (view search result, download). >Fix: diff -Nur mldonkey-core.orig/Makefile mldonkey-core/Makefile --- mldonkey-core.orig/Makefile Thu Mar 11 11:34:44 2004 +++ mldonkey-core/Makefile Fri Apr 2 16:02:31 2004 @@ -17,6 +17,16 @@ MASTERDIR= ${.CURDIR}/../../net/mldonkey EXTRA_PATCHES= ${.CURDIR}/files/patch-driverControlers.ml +WRAPPERPREFIX= ${.CURDIR}/files/wrapper-prefix +WRAPPER= ${WRKDIR}/wrapper.sh + +# build our own wrapper script +post-patch-script: + @${MV} -f ${WRAPPER} ${WRAPPER}.orig + @${CAT} ${WRAPPERPREFIX} ${WRAPPER}.orig > ${WRAPPER} + .include "${MASTERDIR}/Makefile" +# I know this will lead portlint to fail, +# but we have to do so. PKGNAMEPREFIX:= ${PKGNAMEPREFIX}tw- diff -Nur mldonkey-core.orig/files/wrapper-prefix mldonkey-core/files/wrapper-prefix --- mldonkey-core.orig/files/wrapper-prefix Thu Jan 1 08:00:00 1970 +++ mldonkey-core/files/wrapper-prefix Fri Apr 2 15:41:55 2004 @@ -0,0 +1,6 @@ +#!/bin/sh +# Force printing non-quote(escaped) instead of \xxx + +LC_CTYPE=en_US.ISO8859-1 +export LC_CTYPE + >Release-Note: >Audit-Trail: >Unformatted: