The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 8 — confirm the corresponding provision (savings: Section 358, BNS 2023).
The pronoun "he" and its derivatives are used of any person, whether male or female.