[FFmpeg-devel] [PATCH] configure: convert MSVC ident to utf-8 if possible
Timo Rothenpieler
timo at rothenpieler.org
Wed Mar 1 14:28:30 EET 2017
---
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"
--
2.8.3
More information about the ffmpeg-devel
mailing list