FreeBSD Bugzilla – Attachment 131371 Details for
Bug 175440
[PATCH] Fix ports/japanese/less's behavior with LANG=ja_JP.UTF-8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.47 KB, created by
Norikatsu Shigemura
on 2013-01-19 20:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Norikatsu Shigemura
Created:
2013-01-19 20:30:00 UTC
Size:
1.47 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 310655) >+++ Makefile (working copy) >@@ -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 @@ > 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} && \ >Index: files/patch-charset.c >=================================================================== >--- files/patch-charset.c (revision 0) >+++ files/patch-charset.c (working copy) >@@ -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.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 175440
: 131371