FreeBSD Bugzilla – Attachment 161923 Details for
Bug 203706
sysutils/uniutils: fix hard-coded endian assumption
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] don't hard code endianness
uniutils.diff (text/plain), 1.58 KB, created by
John Hein
on 2015-10-11 19:10:10 UTC
(
hide
)
Description:
[patch] don't hard code endianness
Filename:
MIME Type:
Creator:
John Hein
Created:
2015-10-11 19:10:10 UTC
Size:
1.58 KB
patch
obsolete
>Debatable whether 2.27 needs gettext - there are no message catalogs. >The intent is there - code calls gettext() with messages, so maybe >a future version will have catalogs/translations. It's probably okay. > >utf8lookup: Fix hard-coded endian assumptions. Could be fed upstream. >(Name 'utf8lookup' is bad - should be 'unicodelookup'). > >Index: Makefile >=================================================================== >--- Makefile (revision 398570) >+++ Makefile (working copy) >@@ -26,7 +26,7 @@ > OPTIONS_DEFINE= DOCS EXAMPLES > > pre-configure: >- ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.in >+ ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in > ${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README > > regression-test: >Index: files/patch-utf8lookup >=================================================================== >--- files/patch-utf8lookup (revision 398570) >+++ files/patch-utf8lookup (working copy) >@@ -1,11 +1,12 @@ > --- utf8lookup.orig Sun Jan 29 21:43:23 2006 > +++ utf8lookup Tue Jan 31 00:11:48 2006 >-@@ -10,7 +10,7 @@ >+@@ -10,7 +10,8 @@ > # >++[ $(( $(printf '\1' | od -dAn) )) -eq 1 ] && end=le || end=be > echo 0x$1 | # feed command-line argument to ascii2binary's stdin > ascii2binary -t ui | # convert text to unsigned integer > -iconv -f utf32 -t utf8 | # convert utf-32 to utf-8 encoding >-+iconv -f ucs-4le -t utf-8 | # convert utf-32 to utf-8 encoding >++iconv -f ucs-4$end -t utf-8 | # convert utf-32 to utf-8 encoding > uniname -b -c -e -g # feed to uniname, suppressing byte and character offsets, > # UTF-8 encoding, and glyph >
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 203706
: 161923