Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 10:27:08 +0100 (CET)
From:      Simun Mikecin <numisemis@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/106635: [fix] lang/see-devel: fix UTF8 decoding
Message-ID:  <20061212092708.408A326D36D@mail.logos.hr>
Resent-Message-ID: <200612120930.kBC9U3xY037820@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106635
>Category:       ports
>Synopsis:       [fix] lang/see-devel: fix UTF8 decoding
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 12 09:30:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Simun Mikecin
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD mail.logos.hr 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Mon Jul 26 14:07:00 CEST 2004 root@mail.logos.hr:/usr/obj/usr/src.5.2.1-R/sys/MAIL i386


	
>Description:
  Patch to make UTF8 character decoding functional.
  Algorithm in input_utf8.c didn't work if char is a signed type.
  See http://www.adaptive-enterprises.com.au/bugs/show_bug.cgi?id=60
>How-To-Repeat:
>Fix:
diff -urN see-devel.orig/Makefile see-devel/Makefile
--- see-devel.orig/Makefile	Tue Dec  5 16:03:41 2006
+++ see-devel/Makefile	Tue Dec 12 08:57:59 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	see
 PORTVERSION=	2.0.1131
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang devel
 MASTER_SITES=	http://www.powerband.net.au/~david.leonard/ \
 		http://freshmeat.net/redir/see/45974/url_tgz/
diff -urN see-devel.orig/files/patch-libsee_input__utf8.c see-devel/files/patch-libsee_input__utf8.c
--- see-devel.orig/files/patch-libsee_input__utf8.c	Thu Jan  1 01:00:00 1970
+++ see-devel/files/patch-libsee_input__utf8.c	Tue Dec 12 08:53:49 2006
@@ -0,0 +1,20 @@
+--- libsee/input_utf8.c.orig	Wed Jan 18 12:40:19 2006
++++ libsee/input_utf8.c	Tue Dec 12 08:48:44 2006
+@@ -63,7 +63,7 @@
+ 
+ struct input_utf8 {
+ 	struct SEE_input	inp;
+-	const char *	s;
++	const unsigned char *	s;
+ };
+ 
+ static SEE_unicode_t
+@@ -141,7 +141,7 @@
+ 	inpu->inp.inputclass = &input_utf8_class;
+ 	inpu->inp.filename = NULL;
+ 	inpu->inp.first_lineno = 1;
+-	inpu->s = s;
++	inpu->s = (const unsigned char *)s;
+ 	SEE_INPUT_NEXT((struct SEE_input *)inpu);	/* prime */
+ 	return (struct SEE_input *)inpu;
+ }
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061212092708.408A326D36D>