The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 42 — confirm the corresponding provision (savings: Section 358, BNS 2023).
A "local law" is a law applicable only to a particular part of India.