diff -rupN thunar/thunar/thunar-shortcuts-model.c thunarnew/thunar/thunar-shortcuts-model.c --- thunar/thunar/thunar-shortcuts-model.c 2011-03-28 02:03:39.806000007 +0200 +++ thunarnew/thunar/thunar-shortcuts-model.c 2011-03-28 02:11:53.158000006 +0200 @@ -879,6 +879,7 @@ thunar_shortcuts_model_load (ThunarShort /* save the old locale */ old_locale = setlocale (LC_MESSAGES, NULL); + old_locale = strdup (old_locale); /* set the new locale */ locale = _thunar_get_xdg_user_dirs_locale (); diff -rupN thunar/thunar/thunar-window.c thunarnew/thunar/thunar-window.c --- thunar/thunar/thunar-window.c 2011-03-28 02:03:39.813000007 +0200 +++ thunarnew/thunar/thunar-window.c 2011-03-28 02:11:33.165000007 +0200 @@ -619,6 +619,7 @@ thunar_window_setup_user_dir_menu_entrie /* save the old locale */ old_locale = setlocale (LC_MESSAGES, NULL); + old_locale = strdup (old_locale); /* set the new locale */ locale = _thunar_get_xdg_user_dirs_locale ();