aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2023-08-22 20:58:17 +0200
committerTeddy Wing2023-08-22 20:58:17 +0200
commitf79e68b9dc35c51ac61142e1cc952459cc9f4225 (patch)
treefb4214721267a64845aab8bac830b7309ae1d67d /Makefile
parentb7e92ec1e0d1031b5ecb91f9653dcc507651d57f (diff)
downloadBase-Windowed-Application-f79e68b9dc35c51ac61142e1cc952459cc9f4225.tar.bz2
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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: