Macaulay, in India from 1834 to ’38 as a member of the Supreme Council of the East India Company, reformed the Indian educational system, with the intention of creating a class of anglicised Indians, and chaired the First Law Commission which began to draft a universal code of criminal law for the colony.
The Indian Penal Code (Hindi: भारतीय दण्ड संहिता) was introduced in 1860 and is still the basis of Indian criminal law, though regularly amended. It was adopted wholesale by the British colonial authorities in what are now Sri Lanka, Burma, Malaysia, Singapore and Brunei, and remains the basis of their criminal codes. It was also inherited by Pakistan and Bangladesh. Versions of it were introduced in other British colonies.
Section 377, which was repealed or substantially repealed in India in 2009, survives in Pakistan, Bangladesh, Burma, Malaysia, Singapore and Brunei. It Sri Lanka it has become section 365A.
Wikipedia on section 377.
Post on how the English applied civil law in India.