[build,android] fix build on Win10 returning invalid UTF for OS name.
@@ -201,6 +201,8 @@ def cc_run(command, args, chdir = nil, coloring = true, env = nil, verbose = tru
isWinXP = false
if RUBY_PLATFORM =~ /(win|w)32$/
winName = `WMIC OS get Name`
+ #fix for invalid UTF
+ winName.encode('UTF-8', 'UTF-8', invalid: :replace, undef: :replace, replace: '')
isWinXP = true if winName =~ /Windows XP/
end
