From 36a16a4576a8986a297fd9bdbafd9038ecba926a Mon Sep 17 00:00:00 2001 From: elexis Date: Mon, 8 May 2017 22:29:00 +0000 Subject: [PATCH] Remove debug breakpoint that is triggered whenever an unsupported UTF32 character is encountered, for example when someone would send a lobby chat message containing such a character, it effectively ended the game of the recipients. Differential Revision: https://code.wildfiregames.com/D456 Fixes #4433 Reviewed By: leper Reported and tested by: Hannibal_Barca This was SVN commit r19540. --- source/lib/utf8.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/lib/utf8.cpp b/source/lib/utf8.cpp index 962de8704a..8c02f361c7 100644 --- a/source/lib/utf8.cpp +++ b/source/lib/utf8.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010 Wildfire Games +/* Copyright (c) 2017 Wildfire Games * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -21,6 +21,7 @@ */ #include "precompiled.h" + #include "lib/utf8.h" static const StatusDefinition utf8StatusDefinitions[] = { @@ -81,7 +82,10 @@ static UTF32 RaiseError(Status err, Status* perr) *perr = err; } else - DEBUG_WARN_ERR(err); + { + wchar_t error[200]; + debug_printf("UTF8 error: %s\n", utf8_from_wstring(StatusDescription(err, error, ARRAY_SIZE(error))).c_str()); + } return 0xFFFDul; // replacement character }