I’m seriously confused by the US law system and apparently, also by the Swedish one. At least I found out that in my native Germany “jails” (that’s how it’s translated) don’t exist any longer but apparently did until 1970. Germany has now only prisons, someone who is kept in custody prior to the trial is in exactly the same building as those who are properly in prison.
I meet someone on ChatRoulette once who was an intern at one of the courts in Germany. During our conversation it became obvious that English Common Law and Germanic/Salic Law are two different beast. It is important to remember that there is no universal set of rules, as cultures value things differently.