Not really a high-seas problem, onboard a ship the regulations of the flag country apply. However, flag countries are picked to be very lax in both laws and their enforcement.
E.g. you will not find any carribean cruise ship from the big lines that is under a US flag.