I'm trying to move a project I'm working on over to windows. After getting a windows install and visual studio setup, I noticed one of my unit tests fails. It appears the root cause is due to the String.append function misbehaving on Windows with a very specific string. I was able to reproduce the issue with a few lines of code, using Juce v3.1.1 and a generated commandline project from IntroJucer (targeting VS2015):
String string("abc\""); String string2("abcdefghijklmn\""); string.append(string, 1); string2.append(string2, 1); DBG(string); DBG(string2);
This produces the following output:
As you can see the second string should have an 'a' appended but it does not.
Full disclosure, I couldn't find my XP key, so I'm just running the pre-release Windows 10 and VS2015 Ultimate Preview (latest releases of both).
It's no big issue for me, as I found an easy work around of using:
string = string + string;
... but thought I would make you aware.