<div dir="ltr"><div>(1 to: 30) collect: [:i | EncodedCharSet charsetAt: i]<br>-&gt;<br>{JISX0208 . GB2312 . KSX1001 . JISX0208 . JapaneseEnvironment . SimplifiedChineseEnvironment . KoreanEnvironment . GB2312 . nil . nil . nil . KSX1001 . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil . nil}<br>
<br></div>So if you manufactured a character with leadingChar 25 for example, that would be nil...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/1 tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So far as I can tell, this method cannot return nil (well, unless somebody subverts things) and yet two senders try to handle the result being nil.<br>

<br>
EncodedCharSet class&gt;scanSelectorAt: and CompoundTextConvertor&gt;nextPutValue:toStream:withShiftSequenceIfNeededForLeadingChar:<br>
<br>
If the intent was that something ought to sometimes happen that actually can&#39;t, maybe the code needs checking, just in case. All the other senders rely on the result being non-nil.<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
Fractured Idiom:- POSH MORTEM - Death styles of the rich and famous<br>
<br>
<br>
<br>
</blockquote></div><br></div>