Commit 02452cc2 authored by Marco Mariani's avatar Marco Mariani

cygwin: recode output of ipwin to $LANG (with hardcoded -f cp1252)

parent da0bf253
...@@ -305,7 +305,12 @@ function format_interface_name() ...@@ -305,7 +305,12 @@ function format_interface_name()
local guid="$1" local guid="$1"
if [[ ${guid} == {*} ]] ; then if [[ ${guid} == {*} ]] ; then
echo $(ipwin name ${guid}) name=$(ipwin name ${guid})
if [[ "x$LANG" = "x" ]]; then
echo $name
else
echo $name | iconv -f cp1252 -t $(echo $LANG | cut -d. -f2)
fi
else else
echo ${guid} echo ${guid}
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment