Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
02452cc2
Commit
02452cc2
authored
Oct 01, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cygwin: recode output of ipwin to $LANG (with hardcoded -f cp1252)
parent
da0bf253
Changes
1
Show 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()
...
@@ -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
...
...
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