hibernate/hibernate-orm — pull request #517 by beikov (2013-04-27 08:54:15+00:00)
Title: Fix string to locale conversion

The original implementation didn't care about leading underscores. StringTokenizer skips leading separators which is actually wrong. new Locale("", "XX").toString() produces "_XX" which can't be converted back to the same locale with the original implementation.