Date: Fri, 31 Aug 2007 21:02:38 +0800 (CST) From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/115966: [UPDATE] ports/ftp/bsdftpd-ssl: set LANG=C while doing character translations Message-ID: <20070831130238.191CA1701D@sunpoet.net> Resent-Message-ID: <200708311310.l7VDA1Zw022759@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115966 >Category: ports >Synopsis: [UPDATE] ports/ftp/bsdftpd-ssl: set LANG=C while doing character translations >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Aug 31 13:10:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 6.2-STABLE i386 >Organization: SUNPOET.net >Environment: System: FreeBSD IRIS.sunpoet.net 6.2-STABLE FreeBSD 6.2-STABLE #7: Fri Aug 3 04:37:18 CST 2007 sunpoet@IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386 >Description: bsdftpd-ssl's makelist script uses tr to do character translations. It may yield unexpected results with some locales (eg en_US.UTF-8). Use LANG=C explicitly to avoid this build error. >How-To-Repeat: # sh # env LANG=en_US.UTF-8 # cd /usr/ports/ftp/bsdftpd-ssl # make >Fix: # cat /usr/ports/ftp/bsdftpd-ssl/files/patch-contrib-libedit-makelist --- contrib/libedit/makelist.orig 2001-12-17 07:55:26.000000000 +0800 +++ contrib/libedit/makelist 2007-08-31 20:32:51.000000000 +0800 @@ -128,8 +128,8 @@ printf("#endif /* _h_help_c */\n"); }' /dev/null;; -fh) - cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ - sort | tr '[a-z]' '[A-Z]' | $AWK ' + env LANG=C cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ + sort | env LANG=C tr '[a-z]' '[A-Z]' | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n"); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070831130238.191CA1701D>