
Turkish has a dotless i, so in a Turkish locale the capital I lowercases to a character that is not the ASCII i. Software that normalised user input by lowercasing it kept breaking the moment a phone was set to Turkish. Logins failed. One config parser decided INCLUDE was not INCLUDE. The fix everyone landed on was to stop being clever and only touch A to Z.
Objective
Copy a string into dst, lowercasing the ASCII letters and leaving every other byte untouched.
Steps
$ lower_ascii(dst, "ILOVEYOU")
iloveyou
$ lower_ascii(dst, "Mixed-42_X")
mixed-42_x
$ lower_ascii(dst, "")
(no output)
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...