depends on the country.

any islamic nation that has alot of westerners will usually not punish westerners with sharia law.

some countries have western sectionsa that are ruled by american law.