How should a switch loop be wired?
Why do you consider a black to a white wrong?? The whole "black-to-black, white-to-white" is a wives tale and myth.

What you have is a switch loop, and is VERY common, especially in 50's and 60's homes.

The white from the panel goes to the white from the fixture. This is the neutral.
The black from the panel goes to the white from the switch. This is the feed.
The black from the switch goes to the black from the fixture. This is the switched hot.

Modern codes do require that the white to the switch get re-marked with a hot color (typically black, red or blue) with a permanent method such as paint, a permanent marker or even tape.