Parties to civil suit and their wives or husbands, and husband or wife of person under criminal trial
122.—(1)  In all civil proceedings, the parties to the suit, and the husband or wife of any party to the suit, are competent witnesses.
(2)  In criminal proceedings against any person, the husband or wife of such person respectively is a competent witness.
(3)  In any criminal proceedings, the accused is competent to give evidence on behalf of himself or herself or any person jointly charged with him or her, but is not compellable to do so.
(4)  Where in any criminal proceedings the accused gives evidence, then, subject to this section and section 56, the accused must not in cross‑examination be asked, and if asked is not required to answer, any question tending to reveal to the court —
(a)the fact that the accused has committed, or has been charged with or convicted or acquitted of, any offence other than the offence charged; or
(b)the fact that the accused is generally or in a particular respect a person of bad disposition or reputation.
(5)  Subsection (4) does not apply to a question tending to reveal to the court a fact about the accused such as is mentioned in paragraph (a) or (b) thereof if evidence of that fact is (by virtue of section 14 or 15 of this Act or of section 265 or 266 of the Criminal Procedure Code 2010 or of any other written law) admissible for the purpose of proving the commission by him or her of the offence charged.
[15/2010]
(6)  Where in any criminal proceedings in which 2 or more persons are jointly charged, any of the accused gives evidence, subsection (4) does not in his or her case apply to any question tending to reveal to the court a fact about him or her such as is mentioned in subsection (4)(a) or (b) if evidence of that fact is admissible for the purpose of showing any other of the accused to be not guilty of the offence with which that other is charged.
(7)  Subsection (4) does not apply if —
(a)the accused has personally or by his or her advocate asked any witness for the prosecution or for a person jointly charged with him or her any question concerning the witness’s conduct on any occasion or as to whether the witness has committed, or has been charged with or convicted or acquitted of, any offence; and
(b)the court is of the opinion that the main purpose of that question was to raise an issue as to the witness’s credibility,
but the court is not to permit a question falling within subsection (4) to be put to the accused by virtue of this subsection unless it is of the opinion that the question is relevant to his or her credibility as a witness.
(8)  Subsection (4) does not apply where the accused has himself or herself given evidence against any person jointly charged with him or her in the same proceedings.