From f89a85c973a175c52e81b92cb251212bc6a83574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 29 Sep 2018 23:03:16 +0300 Subject: [PATCH] windres: Fix handling of the -c/--codepage options --- wrappers/windres-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/windres-wrapper.sh b/wrappers/windres-wrapper.sh index dbcbf83..1de8830 100755 --- a/wrappers/windres-wrapper.sh +++ b/wrappers/windres-wrapper.sh @@ -121,9 +121,9 @@ while [ $# != 0 ]; do "-I"*) INCLUDE="${INCLUDE} ${1#-I}";; "-c"|"--codepage") - CODEPAGE="${1#*=}";; - "-c="*|"--codepage="*) CODEPAGE="${2}"; shift;; + "-c="*|"--codepage="*) + CODEPAGE="${1#*=}";; "--preprocessor") error "ENOSYS";; "--preprocessor-arg")