diff -ru dos2unix-7.3.5.orig/test/Makefile dos2unix-7.3.5/test/Makefile
--- dos2unix-7.3.5.orig/test/Makefile	2017-07-04 21:03:15.000000000 +0200
+++ dos2unix-7.3.5/test/Makefile	2017-07-05 20:27:54.375920600 +0200
@@ -25,7 +25,7 @@
 ifeq ($(UCS),1)
 
 # Check for UTF-8 locale. Try C.UTF-8 and en_US.UTF-8.
-ifeq ($(shell ./chk_loc.sh X.UTF-8),yes)
+ifeq ($(shell ./chk_loc.sh C.UTF-8),yes)
 TESTS += utf16.t
 export D2U_UTF8_LOCALE = C.UTF-8
 else
@@ -87,7 +87,7 @@
 wcstombs:
 	$(CC) -Wall -Wextra wcstombs_test.c -o wcstombs_test
 	@echo "====> test wcstombs() UTF-8"
-	LC_ALL=.UTF-8 ./wcstombs_test
+	LC_ALL=en_US.UTF-8 ./wcstombs_test
 	@echo "====> test wcstombs() GB18030"
 	LC_ALL=zh_CN.GB18030 ./wcstombs_test
 
