what we get is a pretty classic result: a square signal in the time domain transforms into sinc in the frequency domain.

The Fourier transform of a step function includes something called Dirac's delta function you can read more about this in the following article:

Fourier Transform--Heaviside Step Function -- from Wolfram MathWorld