From f79e68b9dc35c51ac61142e1cc952459cc9f4225 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 22 Aug 2023 20:58:17 +0200 Subject: Makefile: Convert Localizable.strings to UTF-8 The `genstrings` command only outputs in UTF-16LE character encoding. However, it's perfectly acceptable to use UTF-8 for a Localizable.strings file. convert the output file to UTF-8. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f25a5e8..761e637 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ genstrings: Base.lproj/Localizable.strings Base.lproj/Localizable.strings: $(SOURCES) genstrings -o Base.lproj $^ + mv $@ "$@.utf16" + iconv --from-code=UTF-16 --to-code=UTF-8 "$@.utf16" > $@ + rm "$@.utf16" + .PHONY: clean clean: -- cgit v1.2.3