From patchwork Fri Feb 3 08:41:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hendrik Leppkes X-Patchwork-Id: 2417 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp535485vsb; Fri, 3 Feb 2017 00:42:19 -0800 (PST) X-Received: by 10.28.191.139 with SMTP id o11mr312254wmi.97.1486111339025; Fri, 03 Feb 2017 00:42:19 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r72si31750380wrb.121.2017.02.03.00.42.18; Fri, 03 Feb 2017 00:42:18 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 149BC689978; Fri, 3 Feb 2017 10:42:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A8A0D6897C8 for ; Fri, 3 Feb 2017 10:42:00 +0200 (EET) Received: by mail-wm0-f68.google.com with SMTP id v77so2847732wmv.0 for ; Fri, 03 Feb 2017 00:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=KTpJaSmwt8yEOdZxaBOeMlmeb40afhVBttE4kCFKRXw=; b=c8ywyyCEwfS9uUoj2Ae3sqiQ479TbHLyuOpAnW0kKPK2Z/sd5oscWX6pQFmLKt08Et /r+sSnLCmcXCIvXLjYPLFGwIQuJ7QIDxb76dZwqJZNJntjoUKD2VTe3z+Z4CmU79i3nB 2srbCNCKMJKy+mhNOB2qGF026rwbVLWSrTCdRsq7zGJ55rY/QTDls/ZPkAiqYzmcPPuP H6g804Uh5u+Y2Nl/rZvupWo3IPL4uee1Ge6OlFyoDKy4OIkWdeIf9nhCxJRX+HRlOxvj 2Lj5YKQM8j8RSJ+njYvcvEnnYyZ10yD7HOGmYK0tqWTjnQBAcgUf4Y/agIA5vGN5CkPJ spUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=KTpJaSmwt8yEOdZxaBOeMlmeb40afhVBttE4kCFKRXw=; b=cuA6t97kEdPs0WiFv+DHbVCfqkgO8qftuikrp7nwKXl9rVqxdsdQJgzBCPmkYNbjYx CiGSuZI+we3RysOwx2gffzsOETzyTojNETS1T9YoSH5hQzaJ+yve8Wq43cYHqOJtRidf vEHFS6iwEbWczTW95c8u3yYqSVlHB2Q26sGgq1jxOxp+FuPYNC0H9jg7siXbScWcWZeq 9aG8rW0WgQ+CEmAFxBRyFbVLBsNrQSRS/BzbXsrQao/Rx2+tKPeUcPsdN927HmL2ipG5 fHczQwtvW31SPzUgtb4kpU8n4zm+SNUdIyjAzbSSle1Ty+e2VOLFdiBsUnVFSH/rKEo2 aIgQ== X-Gm-Message-State: AMke39lOJCl3yCZlNbjzmuc8UHspb/riV/8V/OFnoYZeDwyrD8Lw2u3L2mnEHcsnyxM05g== X-Received: by 10.28.66.221 with SMTP id k90mr348321wmi.90.1486111320510; Fri, 03 Feb 2017 00:42:00 -0800 (PST) Received: from localhost (p4FC4F919.dip0.t-ipconnect.de. [79.196.249.25]) by smtp.gmail.com with ESMTPSA id s17sm43950298wrc.6.2017.02.03.00.41.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 00:41:59 -0800 (PST) From: Hendrik Leppkes To: ffmpeg-devel@ffmpeg.org Date: Fri, 3 Feb 2017 09:41:54 +0100 Message-Id: <20170203084154.9612-2-h.leppkes@gmail.com> X-Mailer: git-send-email 2.11.0.windows.1 In-Reply-To: <20170203084154.9612-1-h.leppkes@gmail.com> References: <20170203084154.9612-1-h.leppkes@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/2] configure: instruct MSVC 2015 to properly process UTF-8 string literals X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Without the /UTF-8 switch, the MSVC compiler treats all files as in the system codepage, instead of in UTF-8, which causes UTF-8 string literals to be interpreted wrong. This switch was only introduced in VS2015 Update 2, and any earlier versions do not have an equivalent solution. Fixes fate-sub-scc on MSVC 2015+ --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index d3d652f0f4..231cc3eca7 100755 --- a/configure +++ b/configure @@ -6327,6 +6327,9 @@ EOF # Issue has been fixed in MSVC v19.00.24218. check_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" || check_cflags -d2SSAOptimizer- + # enable utf-8 source processing on VS2015 U2 and newer + check_cpp_condition windows.h "_MSC_FULL_VER >= 190023918" && + add_cflags -utf-8 fi for pfx in "" host_; do