Are these AC wires in this cable swapped?
You're right, it appears to be backwards.

However, in practice, it doesn't really make all that much difference. Inside your equipment, you have to keep both line and neutral isolated from the ground connection anyway.

Even if your cable was wired correctly, there could be an error elsewhere in the mains wiring.

In other words, you have to treat both black and white as "equally dangerous".