diff --git a/app/models/additionals_info.rb b/app/models/additionals_info.rb index dc3bdd20..87d755bd 100644 --- a/app/models/additionals_info.rb +++ b/app/models/additionals_info.rb @@ -29,8 +29,14 @@ def system_infos def system_info if Redmine::Platform.mswin? - win_info = `wmic os get Caption,CSDVersion,BuildNumber /value` - return 'unknown' if win_info.blank? + unkwown_windows = 'Windows' + begin + win_info = `wmic os get Caption,CSDVersion,BuildNumber /value` + win_info = Redmine::CodesetUtil.replace_invalid_utf8 win_info + return unkwown_windows if win_info.blank? + rescue StandardError + return unkwown_windows + end windows_version = '' windows_build = ''