Any offense should normally be inquired and tried by a court in whose jurisdiction it was committed. It is known as the lex fori or the law of jurisdiction.
But there are some exceptions to this general rule. The provisions of Section 177 of Cr. P. C. clearly states the general rule and stipulates that any offense shall ordinarily be inquired into and tried by a court within the local limits of the jurisdiction of which it was committed. The crime is purely local and depends on the law of the place where it was committed and not on the nationality of the person who commits it.
Actually the well-settled priciple of Criminal Law is that the place of offence determnes the venue of an offence committed with the jurisdiction of the Court. The International Law also supports the same and rules that every person who is found within a foreign State to and is punishable by its law.
In fact, the well-established principle of criminal law is that the place of the offense determines the venue of an offense committed under the jurisdiction of the Court. International law also supports the same principle and states that anyone who is in a foreign state to and is punishable by its law.
Section 178 of Cr P.C. intends to provide for the difficulty which would arise in the event of a conflict between different areas in order to prevent an accused from getting out entirely because of a doubt as to jurisdiction. It states that when it is not certain in which of diverse local areas an offence has been committed or when the part of an offence has been committed in one local area and the rest part of such offence has been committed in another local area or when an offence is continuous and keeps on being committed in more than one local areas or if it is composed of several acts performed in different local areas, it may be tried by a court with jurisdiction over any of these local areas.