debian bug #766348: fix parsing of ranges in generator; thanks to wavexx