To allow non-latin1 UTF-8 characters in folder names with UTF8=ACCEPT in effect, this change to the mozilla-central code seems to be needed. Without this, any UTF-16 character that is greater than U+00FF loses the top byte. This allows the top bytes to be kept in the resulting UTF-8 string instead of being discarded and allows folder names such as "Skrê_ꯍ" to be created in tb.
Bug 1571672 Comment 46 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
To allow non-latin1 UTF-8 characters in folder names with UTF8=ACCEPT in effect, this change to the mozilla-central code seems to be needed. Without this, any UTF-16 character that is greater than U+00FF loses the top byte. This allows the top bytes to be kept in the resulting UTF-8 string instead of being discarded and allows folder names such as "Skrê_ꯍ" to be created in tb. This address the issue described in comment 42.