Mantis - Squeak
Viewing Issue Advanced Details
6724 Kernel minor always 10-11-07 21:25 07-04-08 01:58
nicolas cellier  
 
normal  
closed 3.10  
duplicate  
none    
none  
0006724: printStringBase: should be protected against wrong bases

self should: [2 printStringBase: 1] raise: Error.
   "it does infinite loop"

"Found that in methodFinder with 2. 1. 3."


"Funnily, you can even print in non integer base"
(Float pi printStringBase: Float pi). '10.0'.

duplicate of 0007107closed nicolas cellier 1 printStringBase: 1 generates an infinite loop within Integer>>printStringBase: 

Notes
(0011311)
nicolas cellier   
10-13-07 21:36   
And this is related to http://bugs.squeak.org/view.php?id=6710 [^]
(0012325)
nicolas cellier   
07-03-08 19:32   
Note that bug is reported again at 0007107

IMO the patch should be superseded by 0006887 which does not loop infinitely and which offers a much faster printString / printOn: / printStringBase: / etc...