Closed zand closed 2 years ago
Another thought is that the autocomplete lists "Animal Crossing New Hor" and it might be possible that the 0x73
somehow comes from the "s" on the end of "Animal Crossing New Horizons".
Managed to determine that the bug is with the call to utf8_to_utf16
and is a result of passing strings longer than 25 characters to it while handing it a 50 byte buffer witch every char after the 25th one overflows the buffer.
Hey. Sorry. I'm not ignoring you or your pull requests. I want to focus on getting the new UI branch sorta finished and merged, then we can check this out and get it all sorted.
No problem, I changed the commit messages to be less verbose and to simple state what was done. I also created a new branch from newUI https://github.com/J-D-K/JKSV/compare/newUI...zand:newUI-iss114 and applied the changes to that in case that helps.
OK thank you. I just pulled the fix from your last comment to the newUI branch. It didn't add you as a contributor but I'll add it to the readme if you'd like.
Environment
OS Version: 12.1.0|AMS M.19.5|E Serial: XAW10035xxxxxx JKSM Version: 08.01.2021
Steps to reproduce
Expected Result
The
YYYY.DD.MM @ hh.mm.ss
date format to be listed as one of the suggestions.Actual Result
The suggestions above the keyboard show the date in the
YYYYMMD_hhmm
andYYYY.DD.MM @ hh.mm.ss
format but notYYYY.DD.MM @ hh.mm.ss
.Things to note
I manage to track the down the point that the bug happens by making the following changes below
Witch results in the following in the log
Note that the first line in the log shows that the first byte of
words
changes from0x32
to0x73
durring the loop. https://github.com/J-D-K/JKSV/blob/de3585dbc3c84d4832bb9291cfe9bb5e49c39a74/src/util.cpp#L256-L257I was unable to figure out why this happens but inputting a "s" instead of "2" results the date being suggested in
YYYY.DD.MM @ hh.mm.ss
format. A couple of my guesses are is it's a bug in a different thread or flaw in my switch's hardware. So far, I been able to reproduce it 100% time and it would be interesting to find out if the switch hardware is a factor.