> < ^ Date: Thu, 13 Jun 1996 11:42:00 +0100 (MET)
> < ^ From: Thomas Breuer <Thomas.Breuer@Math.RWTH-Aachen.DE >
^ Subject: BUGFIX #14 (DANGEROUS problem in 'PrintToMOC')

This mail contains a bugfix for a dangerous problem in GAP 3.4.3.
*You should apply this bugfix as soon as possible if you are using
the facility to convert character tables to MOC format*.
The problem is in 'PrintToMOC', and causes it to print code that
may be misinterpreted by MOC 3.

HOW TO APPLY

The problem is a dangerous problem, because it causes MOC to deal with
corrupted data if the argument of 'PrintToMOC' contains numbers with more
than four digits. Thus the bugfix has high priority, and we recommend
that you apply it as soon as possible if you are using 'PrintToMOC'.

Go to the GAP directory (the directory with the 'lib/' subdirectory),
name this mail 'bugfix14.dif', and issue the command:

patch -p0 < bugfix14.dif

If 'patch' writes "I can't seem to find a patch in there" try 'patch -v'.
If 'patch -v' gives an error message or reports a version older than 2.1,
get 2.1 from 'ftp://FTP.Math.RWTH-Aachen.DE/pub/gap/utils/patch2_1.zoo'.

This workaround changes only the library.
Thus you need not recompile the GAP kernel.

VERSION

GAP 3.4.3.0

DESCRIPTION

The local function 'PrintNumber' omits the middle two of the last four
digits of numbers with more than four decimal digits, so (in the example
below) instead of 'v0625' the string 'v05' is printed, which is not valid
MOC 3 code.

CORRECT BEHAVIOUR

gap> t := CharTable( "A5" );;
gap> chi := List( t.irreducibles[5], x -> x^8 );;
gap> moctbl := MOCTable( t );;
gap> PrintToMOC( moctbl, [ chi ] );
y100y105ay110fey130t60edfy140bcdfy150bbbfcabbey160bbcbdbebecy170ccbbddbbefbby210
bbbcbbbbccabbcbcbkccay220bbabcabdabeabfay230cbbabbabdabekfakfay050dbbabcabbabekf
akfay050fbbabcabdabbaay050hbbabcabdabekfakfay050t11bbabcabdabeabfay050t13bbabcab
dabekfakfay050t17bbabcabdabekfakfay050t19bbabcabdabeabfay9000039v0625bbaaz

COMMENT

PATCH

Prereq: 3.10
--- lib/ctgapmoc.g      1994/06/10 04:44:29
+++ lib/ctgapmoc.g      1996/06/11 07:14:26
@@ -2,7 +2,7 @@
 ##
 #A  ctgapmoc.g                  GAP library                     Thomas Breuer
 ##
-#A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:03:10 felsch Exp $
+#A  @(#)$Id: 1.html,v 1.2 2004/04/21 15:03:10 felsch Exp $
 ##
 #Y  Copyright 1990-1992,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
 ##
@@ -10,6 +10,9 @@
 ##  to MOC format.
 ##
 #H  $Log: 1.html,v $
 #H  Revision 1.2  2004/04/21 15:03:10  felsch
 #H  Corrected links in the Forum Archive pages.   VF
 #H
 #H  Revision 1.1.1.1  2004/04/20 13:39:30  felsch
 #H  The final GAP-Forum archive until 2003.
 #H
 #H  Revision 1.5  2003/06/12 19:20:33  gap
 #H  Further update. AH
 #H
 #H  Revision 1.4  2003/06/12 17:28:25  gap
 #H  Address updates by JN. AH
 #H
 #H  Revision 1.3  1997/08/15 11:19:33  gap
 #H  New forum setup. AH
 #H
 #H  Revision 1.2  1997/04/24 15:32:47  gap
 #H  These files were replaced by the versions in WWW. The content is basically the
 #H  same but the formatting has been much more friendly towards the HTML-Converter.
 #H  AH
 #H
 #H  Revision 1.1  1996/10/30 13:07:04  gap
 #H  added forum archive and translation files.
 #H
+#H  Revision 3.10.1.1  1996/06/11  07:14:00  sam
+#H  fixed bug in 'PrintNumber' (which previously omitted digits)
+#H
 #H  Revision 3.10  1994/06/10  04:44:29  sam
 #H  fixed order and name components
 #H
@@ -1274,7 +1277,7 @@
       od;

       sumber1:= sumber{ [ 1 .. len - 4 ] };
-      sumber2:= sumber{ [ len - 3, len ] };
+      sumber2:= sumber{ [ len - 3 .. len ] };

       # code of last digits is always 'vABCD' or 'wABCD'
       if number >= 0 then
END OF  bugfix14.dif ________________________________________________________

> < [top]