Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Arnaud Véron
slapos.package
Commits
02452cc2
Commit
02452cc2
authored
11 years ago
by
Marco Mariani
Browse files
Options
Download
Email Patches
Plain Diff
cygwin: recode output of ipwin to $LANG (with hardcoded -f cp1252)
parent
da0bf253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
windows/scripts/ip
windows/scripts/ip
+6
-1
No files found.
windows/scripts/ip
View file @
02452cc2
...
...
@@ -305,7 +305,12 @@ function format_interface_name()
local
guid
=
"
$1
"
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
echo
${
guid
}
fi
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment