rust-lang/rust — pull request #17752 by SimonSapin (2014-10-03 20:20:52+00:00)
Title: Fix preallocation amount in String::from_utf16

`v.len()` counts code units, not UTF-16 bytes. The lower bound is one UTF-8 byte per code unit, not per two code units.

I believe this is correct, but it’s late. Someone please double check.