> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Penal Code - PEN § 4022. — Section 4022.

- **Citation**: Cal. Penal Code - PEN § 4022.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Penal Code - PEN (PEN)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/penal-code/part-3/title-4/chapter-1/section-4022](https://corpuslaw.us/codes/california/penal-code/part-3/title-4/chapter-1/section-4022)
- **Semantic URL**: [https://corpuslaw.us/codes/california/penal-code/part-3/title-4/chapter-1/section-4022](https://corpuslaw.us/codes/california/penal-code/part-3/title-4/chapter-1/section-4022)

## Hierarchy

Title PEN — Penal Code - PEN > Part 3. — PART 3. OF IMPRISONMENT AND THE DEATH PENALTY [2000. - 10008.] > Title 4. — TITLE 4. COUNTY JAILS, FARMS AND CAMPS [4000. - 4351.] > Chapter 1. — CHAPTER 1. County Jails [4000. - 4033.]

## Text

Whenever by the terms of this code, or of any other law of the state, it is provided that a prisoner shall be confined in any county jail, such provision shall be construed to authorize any prisoner convicted of a misdemeanor to be confined, with the consent of the city, in any city jail in the judicial district in which the offense was committed, and as to such prisoner so confined in such city jail, the designations, county jail and city jail shall be interchangeable, and in such case the obligations to which the county is liable in case of confinement in a county jail, shall become liabilities of the city where such prisoner is confined in a city jail.
