<commit_before>From Ludo's suggestion at:

  http://debbugs.gnu.org/cgi/bugreport.cgi?msg=8;bug=18258

diff --git a/tests/.t0251-gpt-unicode.sh.swp b/tests/.t0251-gpt-unicode.sh.swp
deleted file mode 100644
index b41c337..0000000
Binary files a/tests/.t0251-gpt-unicode.sh.swp and /dev/null differ
diff --git a/tests/t0251-gpt-unicode.sh b/tests/t0251-gpt-unicode.sh
index c845950..fa63a72 100755
--- a/tests/t0251-gpt-unicode.sh
+++ b/tests/t0251-gpt-unicode.sh
@@ -22,7 +22,24 @@ dev=loop-file
 # create zeroed device
 truncate -s 10m $dev || fail=1
 
-export LC_ALL=C.UTF-8
+found_locale=no
+for locale in en_US de_DE fr_FR es_ES
+do
+  LC_ALL="$locale.UTF-8"
+  export LC_ALL
+
+  # In a UTF-8 locale, the string below prints as 4 characters.
+  if [ `printf 'foo\341\264\244' | wc -m` -eq 4 ]; then
+    found_locale=yes
+    break
+  fi
+done<commit_msg>parted: Fix patch<commit_after>From Ludo's suggestion at:

  http://debbugs.gnu.org/cgi/bugreport.cgi?msg=8;bug=18258

diff --git a/tests/t0251-gpt-unicode.sh b/tests/t0251-gpt-unicode.sh
index c845950..fa63a72 100755
--- a/tests/t0251-gpt-unicode.sh
+++ b/tests/t0251-gpt-unicode.sh
@@ -22,7 +22,24 @@ dev=loop-file
 # create zeroed device
 truncate -s 10m $dev || fail=1
 
-export LC_ALL=C.UTF-8
+found_locale=no
+for locale in en_US de_DE fr_FR es_ES
+do
+  LC_ALL="$locale.UTF-8"
+  export LC_ALL
+
+  # In a UTF-8 locale, the string below prints as 4 characters.
+  if [ `printf 'foo\341\264\244' | wc -m` -eq 4 ]; then
+    found_locale=yes
+    break
+  fi
+done
{'fraction_non_alphanumeric': 0.15434924787442772, 'fraction_numerical': 0.10071942446043165, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2396022', 'n_tokens_mistral': 768, 'n_tokens_neox': 649, 'n_words': 141}