Details
Description
Dear ROOTers,
TText::Copy (and subsequently, the copy constructor, and all copy constructors of inheriting classes, such as TLatex) are utterly broken.
First off, the order of copying is done wrong for the wide-character name is missing,
and secondly, nullptr checks are missing.
For that reason, TText::Copy fails for both the case of a text with wchar and with normal char.
I attach an example, with makefile, illustrating the issue for both cases.
I also have a patch which survives the testcase which I sent as PR - I'll add the PR-number + link in a comment soon.
It would be nice if this bugfix could be applied to the ROOT 5 base, too.
Cheers,
Oliver