From patchwork Wed Mar 1 12:28:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 2711 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.149 with SMTP id x21csp1909208vsf; Wed, 1 Mar 2017 04:28:58 -0800 (PST) X-Received: by 10.28.13.20 with SMTP id 20mr3159382wmn.24.1488371338545; Wed, 01 Mar 2017 04:28:58 -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 124si6788204wmc.106.2017.03.01.04.28.58; Wed, 01 Mar 2017 04:28:58 -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=@rothenpieler.org; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1F33E68837C; Wed, 1 Mar 2017 14:28:45 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [5.9.118.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 14BDE6882A3 for ; Wed, 1 Mar 2017 14:28:39 +0200 (EET) Received: from localhost.localdomain (ip4d16e5ec.dynamic.kabel-deutschland.de [77.22.229.236]) by btbn.de (Postfix) with ESMTPSA id 6F41A28F61; Wed, 1 Mar 2017 13:28:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1488371329; bh=LA2fUxyiNb9mup5RJzdp5XytbclbgcS6S+eTWxVkYlY=; h=From:To:Cc:Subject:Date; b=RIS9AUVLaP9h/t8Wlx9jm8h4P1UY3qNAQ3zH4W1zEFILmHbEalY3zwDaiwOt6Lpxh J/OaGYuosFH2gR5jy7Xz4KYTaLUUzY7OZoRvu+kwM0UJ1MQDlzpSJiYbJ04Vfr7Egr D1KDk+lGqD9lrwmKlSLa/LgdL6a8SpAN6VYlyWhQ= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Wed, 1 Mar 2017 13:28:30 +0100 Message-Id: <20170301122830.10740-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.8.3 Subject: [FFmpeg-devel] [PATCH] configure: convert MSVC ident to utf-8 if possible 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 Cc: Timo Rothenpieler MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 0199fec..398d530 100755 --- a/configure +++ b/configure @@ -4095,7 +4095,11 @@ probe_cc(){ disable stripping elif $_cc -nologo- 2>&1 | grep -q Microsoft; then _type=msvc - _ident=$($_cc 2>&1 | head -n1) + if command -v iconv >/dev/null 2>&1; then + _ident=$($_cc 2>&1 | head -n1 | iconv -sc -f CP850 -t UTF-8) + else + _ident=$($_cc 2>&1 | head -n1) + fi _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' _cflags_speed="-O2"