Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2001 20:44:28 -0800 (PST)
From:      jmcoopr@webmail.bmi.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26262: jgnat is broken
Message-ID:  <200104010444.f314iRO10754@johncoop.MSHOME>

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

>Number:         26262
>Category:       ports
>Synopsis:       jgnat is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 31 20:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.3-RC i386
>Organization:
>Environment:
System: FreeBSD johncoop.MSHOME 4.3-RC FreeBSD 4.3-RC #11: Sat Mar 31 01:58:40 PST 2001 jmcoopr@johncoop.MSHOME:/usr/obj/usr/src/sys/JOHNCOOP i386


	

>Description:
	jgnat-1.0p (the one in the jgnat port) was developed with gnat-3.12p.
	gnat-3.12p has a bug that will allow a Character to be cast directly
	to a Wide_Character.  This was fixed in gnat-3.13p, but as a result,
	jgnat-1.0p will no longer compile under gnat-3.13p.

>How-To-Repeat:
	Just try to make or make install jgnat . . .

>Fix:

The patch:

--- jvm_file.adb.old	Tue Jan 19 15:26:06 1999
+++ jvm_file.adb.new	Thu Mar  8 10:03:10 2001
@@ -31,6 +31,9 @@
 with JVM_Walk;
 with Osint;
 
+--  add following to get rid of compile bug
+with Ada.Characters.Handling;
+
 package body JVM_File is
 
    use Utf8;
@@ -417,7 +420,9 @@
       if U in 16#01# .. 16#7F# then
          Add (T, U);
       else
-         Append (T, Wide_Character (C));
+
+         --  Change to To_Wide_Character from Ada.Characters.Handling
+         Append (T, Ada.Characters.Handling.To_Wide_Character (C));
       end if;
    end Append;
 

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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