svn commit: r310668 - in head/japanese/less: . files
Hiroki Sato
hrs at FreeBSD.org
Sun Jan 20 01:29:22 UTC 2013
Author: hrs
Date: Sun Jan 20 01:29:21 2013
New Revision: 310668
URL: http://svnweb.freebsd.org/changeset/ports/310668
Log:
- Use UTF-8 when LANG=ja.JP.UTF-8.
- Add README.ext.jp.
Submitted by: nork
PR: ports/175440
Added:
head/japanese/less/files/patch-charset.c (contents, props changed)
Modified:
head/japanese/less/Makefile
Directory Properties:
head/japanese/less/pkg-plist (props changed)
Modified: head/japanese/less/Makefile
==============================================================================
--- head/japanese/less/Makefile Sat Jan 19 22:47:03 2013 (r310667)
+++ head/japanese/less/Makefile Sun Jan 20 01:29:21 2013 (r310668)
@@ -3,7 +3,7 @@
PORTNAME= less+iso
PORTVERSION= 382.262
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --with-cs-regex
MAN1= jless.1 jlesskey.1
DOCSDIR= ${PREFIX}/share/doc/less
PORTDOCS= README.iso README.iso.jp README.lesw.euc \
- README.regex README.regex.jp
+ README.regex README.regex.jp README.ext.jp
post-extract:
cd ${WRKDIR} && \
Added: head/japanese/less/files/patch-charset.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/less/files/patch-charset.c Sun Jan 20 01:29:21 2013 (r310668)
@@ -0,0 +1,41 @@
+--- charset.c.orig 2013-01-20 04:32:52.491037000 +0900
++++ charset.c 2013-01-20 05:05:01.106026675 +0900
+@@ -872,6 +872,18 @@
+ return;
+ }
+
++#if HAVE_LOCALE
++ /*
++ * Use setlocale.
++ */
++ ilocale();
++#else
++#if MSDOS_COMPILER
++ /*
++ * Default to "dos".
++ */
++ (void) icharset("dos");
++#else
+ #if HAVE_STRSTR
+ /*
+ * Check whether LC_ALL, LC_CTYPE or LANG look like UTF-8 is used.
+@@ -888,19 +900,6 @@
+ return;
+ }
+ #endif
+-
+-#if HAVE_LOCALE
+- /*
+- * Use setlocale.
+- */
+- ilocale();
+-#else
+-#if MSDOS_COMPILER
+- /*
+- * Default to "dos".
+- */
+- (void) icharset("dos");
+-#else
+ /*
+ * All variables are not defined either, default to DEFCHARSET.
+ * DEFCHARSET is defined in defines.h.
More information about the svn-ports-all
mailing list