From b342e04e544e49eba4372f73ee066c6ec316a1fb Mon Sep 17 00:00:00 2001 From: Benjamin Milde Date: Thu, 9 May 2024 16:15:52 +0200 Subject: [PATCH] Replace hardcoded utf8 bom with erlang function --- lib/package/macos.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package/macos.ex b/lib/package/macos.ex index bb26014..956ff7a 100644 --- a/lib/package/macos.ex +++ b/lib/package/macos.ex @@ -32,7 +32,7 @@ defmodule Desktop.Deployment.Package.MacOS do File.mkdir_p!(bindir) content = eval_eex(Path.join(mac_tools, "InfoPlist.strings.eex"), rel, pkg) - utf8bom = <<0xEF, 0xBB, 0xBF>> + utf8bom = :unicode.encoding_to_bom(:utf8) for lang <- ["en", "Base"] do langdir = Path.join(resources, "#{lang}.lproj")