Authorities say the man allegedly broke a window of a Union Pacific Railroad locomotive before climbing inside.