Support for unicode error message for the ERROR_HANDLER.as_string_representation: STRING_32
and as well for debug_output, this avoid unecessary unicode string truncation.
This commit is contained in:
@@ -54,9 +54,9 @@ feature -- String representation
|
|||||||
|
|
||||||
feature -- Status report
|
feature -- Status report
|
||||||
|
|
||||||
debug_output: STRING
|
debug_output: STRING_32
|
||||||
do
|
do
|
||||||
Result := string_representation.as_string_8
|
Result := string_representation
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Change
|
feature -- Change
|
||||||
@@ -80,7 +80,7 @@ invariant
|
|||||||
name_attached: name /= Void
|
name_attached: name /= Void
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ feature -- Access
|
|||||||
has_error_implies_result_attached: has_error implies Result /= Void
|
has_error_implies_result_attached: has_error implies Result /= Void
|
||||||
end
|
end
|
||||||
|
|
||||||
as_string_representation: STRING
|
as_string_representation: STRING_32
|
||||||
-- String representation of all error(s).
|
-- String representation of all error(s).
|
||||||
require
|
require
|
||||||
has_error
|
has_error
|
||||||
@@ -269,7 +269,7 @@ feature -- Access
|
|||||||
Result := e.string_representation
|
Result := e.string_representation
|
||||||
else
|
else
|
||||||
check has_error: False end
|
check has_error: False end
|
||||||
Result := "Error occured"
|
Result := {STRING_32} "Error occured"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user