Date: Tue, 18 May 2004 11:13:50 +0200 From: "Franz Klammer" <klammer@webonaut.com> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/66796: audio/grip: problems with PO-files in with different encodings Message-ID: <1084871630.0@ds9.webonaut.com> Resent-Message-ID: <200405180920.i4I9KEJh023365@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66796 >Category: ports >Synopsis: audio/grip: problems with PO-files in with different encodings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 18 02:20:14 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Franz Klammer >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD 5.2-CURRENT #8: Mon May 17 18:06:33 CEST 2004 root@ds9.webonaut.com:/usr/obj/usr/src/sys/DS9 >Description: the po-files in this port are provided in different encodings. e.g. de.po has ISO8859-15 and the german text will not displayed correctly. attached a patch that converts all ISO-files to UTF-8. expect zn_* because if i convert them the build fails with "illegal multibyte character"-error. also opened a bug at sourceforge (#955724) about this issue. >How-To-Repeat: >Fix: --- grip_utf8_locale.diff begins here --- diff -Nur grip.orig/Makefile grip/Makefile --- grip.orig/Makefile Mon May 10 09:01:32 2004 +++ grip/Makefile Tue May 18 10:38:35 2004 @@ -36,6 +36,8 @@ MP3ENCODE "Encoder: mp3encode: Install audio/mp3encode" off \ VORBIS "Encoder: oggenc: Install audio/vorbis-tools" off +ISO_LOCALES= de es fr pt_BR ru + .include <bsd.port.pre.mk> .if defined(WITH_CDROM_DEVICE) @@ -105,5 +107,10 @@ s|{"l3enc","-br %b %w %m","mp3"},|{"faac","-w -b %b %w -o %m", "m4a"},|; \ s|mp3encode|encode|' \ ${WRKSRC}/src/gripcfg.c +.for l in ${ISO_LOCALES} + ${MV} ${WRKSRC}/po/${l}.po ${WRKSRC}/po/_${l}.po + @${LOCALBASE}/bin/iconv -f ISO-8859-15 -t UTF-8 \ + ${WRKSRC}/po/_${l}.po > ${WRKSRC}/po/${l}.po +.endfor .include <bsd.port.post.mk> --- grip_utf8_locale.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1084871630.0>