The petitioner in this case having been convicted of the crime of arson, and now being held in custody by the warden of the state penitentiary under a commitment from the district court in and for Latah county, now seeks his discharge upon a writ of habeas corpus„ alleging as grounds therefor that the evidence produced against him at the preliminary examination prior to the filing of an information fails to disclose any crime or public offense committed by him, and that he was held upon such examination without reasonable or probable cause. It appears that an examination of the charge against the defendant was brought on before a justice of the peace in and for Latah county, on the twentieth day of-Decern-*679ber, 1904, and that on the following day the examination was closed and the defendant was bound over to the district court by the justice upon the charge of arson. On the same day, December 20th, the petitioner sued out a writ of habeas corpus before the district judge of the second judicial district, and on the twenty-fourth day of the same month the prisoner was produced in court, and the application was heard and considered by the district judge, and the prisoner was thereupon remanded. ■On the twenty-first day of December, and subsequent to the suing out of the writ, but prior to the hearing thereof, the prosecuting attorney for Latah county filed in the district court his information predicated upon the prior preliminary examination, and charging the defendant with the crime of arson. The case went to trial in the district court on the thirty-first day of December, and on the fourth day of January following, the jury returned a verdict against the defendant of “guilty of arson in the second degree." The petitioner insists that the evidence taken at the preliminary examination failed to show the commission of any crime whatever by him, and failed to connect lim in any way with the commission of an offense, and that he was therefore committed without reasonable or probable cause. 'The warden of the state penitentiary has made a return to the writ heretofore issued, from which it appears that he holds the petitioner by virtue of and under a judgment and commitment in due form and regular upon its face, from the district court of Latah county, and it is contended by counsel for the state that in this proceeding the court cannot go behind the judgment to examine the regularity of the proceedings had against the petitioner. Section 8353, Kevised Statutes, prescribes the duty of the court or judge upon such a hearing as follows: “The ■court or judge, if the time during which such party may be legally detained in custody has not expired, must remand such party, if it appears that he is detained in custody: . . . . 2. By virtue of the final judgment or decree of any competent court of criminal jurisdiction, or of any process issued upon such judgment or decree.” It appears to us that under the foregoing statutory provisions, we are without authority to examine the evidence taken upon the preliminary examination for the purpose of determining whether or not it discloses any offense as *680having been committed by the petitioner. There is no question in this case bnt what the district court is a court of competent jurisdiction for the trial of the offense charged, nor is there any question as to the venue; consequently there is no occasion for examining the record for the purpose of ascertaining those facts.
At the time of writing the opinion in Re McCutcheon, 25 Pac. 97, the state of Montana appears to have had a statute substantially the same as section 8353 of our Revised Statutes, and in that case the court, passing upon a very similar question to the one under consideration, said: “In a case like the one at bar, wherein the court had plenary jurisdiction to try the charge and enter judgment, we cannot, on habeas corpus, review and pass upon the legality or illegality of the proceedings at the trial, because the statute limits and confines our inquiry to the question as to whether the judgment is rendered, and the writ hy virtue thereof is issued, by a court of competent criminal jurisdiction.”
In 15 American and English Encyclopedia of Law, second edition, 201, the author says: “Where a prisoner in custody under a sentence of conviction seeks to be discharged on habeas corpus, it is well settled as a general rule that the inquiry is limited to the question whether the court in which the prisoner was convicted had jurisdiction in the premises, and the validity of the sentence or process on its face; but no inquiry can be had into the sufficiency of the evidence to support the conviction, or into any question which it was the province of the trial court to determine, because it is not the province of the writ to retry issues of fact or to review the rulings of the trial court.”
In Ex parte McConnell, 83 Cal. 558, 23 Pac. 1119, the court had under consideration an application for a writ of habeas corpus where the petitioner alleged that prior to conviction he never had a preliminary examination as required by law. The syllabus to that case is as follows: “A prisoner convicted upon an information of a felony cannot raise the objection in a proceeding upon habeas corpus that he was not examined or held to answer by a magistrate prior to the filing of the information. *681Such objection should have been taken before trial, by motion to set aside the information.”
In Ex parte Stearns, 82 Cal. 245, 23 Pac. 38, an application was made for writ of habeas corpus upon the grounds that ihe petitioner had been held by a committing magistrate after an examination had, without probable cause. The application in that case was made in the supreme court prior to the filing' of an information by the public prosecutor, but the case was-heard subsequent to the filing of the information, and the court held that notwithstanding an information had been filed in the meanwhile, under the provisions of subdivision 7, section 1487 of the California Penal Code, it became the duty of the court to examine the depositions and determine for themselves whether or not probable cause existed, and after such examination they found in favor of the prisoner’s contention and ordered him discharged. Subdivision 7 of section 8354 of our Eevised Statutes is identical with subdivision 7, section 1487, of the California Penal Code. By our statute, supra,, it is provided: “If it appears on the return of the writ that the prisoner is in custody by virtue of process from any court of this state, or judge or officer thereof, such prisoner may be discharged in any of the following cases, subject to the restrictions of the last section: .... 7. Where a party has been committed on a criminal charge without reasonable or probable cause.” In the case at bar, however, the application was not made in this court until after a conviction was had in the lower court.
If no evidence was produced against the petitioner at the preliminary examination, and he was held without probable cause, it was clearly the duty of the court under the foregoing statute to discharge the prisoner on habeas corpus.
The same objection is certainly available to a prisoner upon arraignment after the filing of an information by the prosecutor. It is elementary law, under our modern system of prosecution by information, that a prisoner has no right to file an information against anyone where the depositions taken at the preliminary examination (unless examination was waived) fail to disclose any reasonable or probable cause for believing the defendant guilty of 'an offense. His informa*682tion must charge an offense shown by the depositions, and if they fail to disclose any offense against the prisoner the prosecutor can charge no offense by his information. If a defendant in such case does not avail himself of the benefits of habeas corpus prior to his arraignment and trial, then he is certainly entitled to interpose the objection to the information, and of course has the right of appeal for the correction of any error committed by the trial court in passing upon the matter.
This is a court of original jurisdiction in matters of habeas corpus, and upon such application it cannot exercise the jurisdiction of an- appellate court or for such purpose convert itself into an appellate court for the examination of questions reviewable upon appeal. (Ex parte Long, 114 Cal. 159, 45 Pac. 1057.) The method of presenting irregularities in the holding of preliminary examinations, or a total failure thereof, has been in a measure sanctioned by this court in State v. Braithwaite, 3 Idaho, 119, 27 Pac. 731; State v. Clark, 4 Idaho, 7, 35 Pac. 710; State v. Faris, 5 Idaho, 666, 51 Pac. 772; State v. McGunn, 8 Idaho, 40, 66 Pac. 823. See, also, Ex parte McConnell, 83 Cal. 558, 23 Pac. 1119.
For the foregoing reasons the writ will be quashed and the prisoner remanded to the custody of the warden of the penitentiary.
Stockslager, C. J., and Sullivan, J., concur.