What happens if you go to jail for stealing?

Let's say that you go to jail and you don't want to break out. Rather, you want to do your time and wait for your trial. Does that day ever come? Or is your character forever sitting in the jail room?