ports/175431: Add support UTF-8 encoding to ports/japanese/less
Norikatsu Shigemura
nork at FreeBSD.org
Sat Jan 19 14:00:00 UTC 2013
>Number: 175431
>Category: ports
>Synopsis: Add support UTF-8 encoding to ports/japanese/less
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 19 14:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Norikatsu Shigemura
>Release: FreeBSD/amd64 9.1-R
>Organization:
>Environment:
FreeBSD www1067gj.sakura.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r245383: Mon Jan 14 08:33:18 JST 2013 nork at www1067gj.sakura.ne.jp:/usr/obj/usr/src/sys/NYARLATHOTEP amd64
>Description:
ports/japanese/less doesn't support to display UTF-8.
But bogytech made a patch to support UTF-8 for ports/japanese/less.
WWW: http://bogytech.blogspot.jp/2011/06/jless-utf-8.html (Japanese only)
>How-To-Repeat:
less UTF8.txt
>Fix:
Please apply my patch.
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 310638)
+++ Makefile (working copy)
@@ -7,7 +7,7 @@
PORTNAME= less+iso
PORTVERSION= 382.262
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
@@ -22,11 +22,12 @@
${DISTNAME}-iso258-259.patch.gz \
${DISTNAME}-iso259-260.patch.gz \
${DISTNAME}-iso260-261.patch.gz \
- ${DISTNAME}-iso261-${PORTVERSION:E}.patch.gz
+ ${DISTNAME}-iso261-${PORTVERSION:E}.patch.gz \
+ ${DISTNAME}-iso${PORTVERSION:E}.ext03.patch.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= ports at FreeBSD.org
-COMMENT= Less + zcat + ISO-2022 - a pager similar to more and pg
+COMMENT= Less + zcat + ISO-2022 + UTF-8 - a pager similar to more and pg
MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
Index: distinfo
===================================================================
--- distinfo (revision 310638)
+++ distinfo (working copy)
@@ -12,3 +12,5 @@
SIZE (less-382-iso260-261.patch.gz) = 841
SHA256 (less-382-iso261-262.patch.gz) = e7249de419acc3b8c4a11bed376d778711fd031887d0df0624d62a6d07356842
SIZE (less-382-iso261-262.patch.gz) = 2215
+SHA256 (less-382-iso262.ext03.patch.gz) = 82fb77f21ea1f3281224fcbfad073aeab12fb40d6623c9b40698be952401f821
+SIZE (less-382-iso262.ext03.patch.gz) = 138951
Index: files/patch-ac
===================================================================
--- files/patch-ac (revision 310638)
+++ files/patch-ac (working copy)
@@ -4,5 +4,5 @@
This modification make regex_cs-lwp9k be able to compile.
*/
--char version[] = "382+iso262";
-+char version[] = "382+iso262+regex_cs-lwp9k";
+-char version[] = "382+iso262+ext3";
++char version[] = "382+iso262+ext3+regex_cs-lwp9k";
Index: files/patch-filename.c
===================================================================
--- files/patch-filename.c (revision 310638)
+++ files/patch-filename.c (working copy)
@@ -1,15 +1,9 @@
--- filename.c.orig 2010-05-10 23:08:16.800855000 +0900
-+++ filename.c 2010-05-10 23:10:53.231134025 +0900
-@@ -802,9 +802,15 @@
- else if (strcmp(".gz", &filename[length - 3]) == 0 ||
- strcmp(".GZ", &filename[length - 3]) == 0)
- return ("| gzip -cd %s");
-+ else if (strcmp(".xz", &filename[length - 3]) == 0 ||
-+ strcmp(".XZ", &filename[length - 3]) == 0)
-+ return ("| xz -cd %s");
- else if (strcmp(".bz2", &filename[length - 4]) == 0 ||
- strcmp(".BZ2", &filename[length - 4]) == 0)
- return ("| bzip2 -cd %s");
++++ filename.c 2013-01-19 08:38:15.691025968 +0900
+@@ -817,6 +817,9 @@
+ else if (strcmp(".xz", &filename[length - 3]) == 0 ||
+ strcmp(".XZ", &filename[length - 3]) == 0)
+ return ("| xz -cd %s");
+ else if (strcmp(".lzma", &filename[length - 5]) == 0 ||
+ strcmp(".LZMA", &filename[length - 5]) == 0)
+ return ("| lzma -cd %s");
Index: pkg-descr
===================================================================
--- pkg-descr (revision 310638)
+++ pkg-descr (working copy)
@@ -7,5 +7,8 @@
This enhanced less support ISO 2022 code extension techniqes and
Japanese codes(EUC Japanese, SJIS) and compressed(or gzipped) file
viewing. The author of this patch is jam at pobox.com. See
-WWW: http://www25.big.jp/~jam/less/
+WWW: http://www25.big.jp/~jam/less/ (not available)
for the latest info.
+
+ And UTF-8 supported by bogytech.
+WWW: http://bogytech.blogspot.jp/2011/06/jless-utf-8.html
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list