mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
- Use UTF-8 when LANG=ja.JP.UTF-8.
- Add README.ext.jp. Submitted by: nork PR: ports/175440
This commit is contained in:
parent
15e9641233
commit
40aeca7673
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310668
@ -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} && \
|
||||
|
41
japanese/less/files/patch-charset.c
Normal file
41
japanese/less/files/patch-charset.c
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user