I just have a hard time looking at a person (one person) and wanting to throw them in jail for stealing some sausage and cheese. It seems a fine is more in order than actual jail time. But fining someone that is so poor they have to steal food isn't going to work. What should have happened is some charitable person or organization steps in, pays for the product and helps the man find somewhere to be food secure moving forward. Be that a church, an organization or the government it doesn't really matter.
Taking each individual case, determining if there was real need or just petty theft and assessing a proper punishment is the way to go. There is a huge gap between jailing a hungry individual and giving people carte blanche to steal whatever they want.