<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="4">Hum, ok I see.</font></p>
    <p><font size="4">I will change again the unicode related paragraph.
        If I am understanding right, the implementation have been
        recently updated to have the behavior you describe.</font></p>
    <p><font size="4">I  observe now this behavior, contrary to the one
        documented in the book:</font></p>
    <p><font size="4">'sur' == 'sur' copy -> false <br>
        'sûr' == 'sûr' copy -> true <br>
      </font></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 22/02/2023 à 13:24, Ignacio
      Sniechowski a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMCzT-bPkAg2Ga-3PeZBBvS2N6WObNa=zpnyDC4tD3Y6dM0+xQ@mail.gmail.com">
      <div class="gmail_default"
        style="font-family:monospace;font-size:large">Yes,</div>
      <div class="gmail_default"
        style="font-family:monospace;font-size:large">I can confirm
        that. But also what puzzles me is the fact that as per The Cuis
        Book all strings in Cuis are Unicode (UTF-8) so there must be
        instances of UnicodeString.</div>
    </blockquote>
    <p>Yep, things evolved in Cuis, I will update the book. Thanks for
      the finding.</p>
    <p>I will borrow your examples if you don't mind.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAMCzT-bPkAg2Ga-3PeZBBvS2N6WObNa=zpnyDC4tD3Y6dM0+xQ@mail.gmail.com">
      <div class="gmail_default"
        style="font-family:monospace;font-size:large">But 'hello' is
        just an instance of class String and being an instance of class
        String makes it mutable while UnicodeStrings are immutable.</div>
      <div class="gmail_default"
        style="font-family:monospace;font-size:large"><br>
      </div>
      <div class="gmail_default"
        style="font-family:monospace;font-size:large">Here is the case:</div>
      <div class="gmail_default"
        style="font-family:monospace;font-size:large">'hello' class.    
                                         " String "<br>
        'hello' at: 2 put: $a; yourself.                    " 'hallo' "<br>
        <br>
        'paragüas' at: 6.                                   "$ü" <br>
        'paragüas' class.                                   "
        UnicodeString "<br>
        'paragüas' at: 6 put: $u.                           "Instances
        of UnicodeString are not indexable"<br>
        'paragüas' asByteString class.                      " String "<br>
        'paragüas' asByteString at: 6 put: $u; yourself.    " 'paraguas'
        "<br>
      </div>
      <div>
        <div dir="ltr" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div><b><font size="2"><br>
                                        </font></b></div>
                                    <div><b><font size="2"><br>
                                        </font></b></div>
                                    <div><font size="2"><span
                                          class="gmail_default"
                                          style="font-family:monospace;font-size:large">So
                                          my confusion comes from this
                                          paragraph:</span></font></div>
                                    <div><font size="2"><span
                                          class="gmail_default"
                                          style="font-family:monospace;font-size:large"><b><br>
                                          </b></span></font></div>
                                    <div><i
                                        style="font-family:monospace">"<span
style="font-size:11pt;font-family:CMB10">Note. </span><span
                                          style="font-size:11pt;font-family:CMR10">We
                                          wrote earlier a string is a
                                          collection of characters. It
                                          is true for byte string, where
                                          each character is encoded with
                                          a byte – a byte string.
                                          However since 2023, the
                                          default string format for
                                          Cuis-Smalltalk is Unicode
                                          (UTF-8) where each character
                                          can be encoded with 1, 2, 3 or
                                          4 bytes. Therefore it is
                                          immutable and can not be
                                          indexed, it can be converted
                                          as byte string with the
                                          message </span><span
                                          style="font-size:11pt;font-family:CMTT10">#asByteString</span><span
style="font-size:11pt;font-family:CMR10">."</span></i></div>
                                    <div><font size="2"><span
                                          class="gmail_default"
                                          style="font-family:monospace;font-size:large"><b><br>
                                          </b></span></font></div>
                                    <div><font size="2"><span
                                          class="gmail_default"
                                          style="font-family:monospace;font-size:large">It
                                          seems that not all strings are
                                          UnicodeStrings by default
                                          unless they have a Unicode
                                          character.</span><br>
                                      </font></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>Yep, the behavior in Cuis changed. It was not a good idea of me
      to update the book too quickly while Cuis was in flux, but that's
      fine.<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAMCzT-bPkAg2Ga-3PeZBBvS2N6WObNa=zpnyDC4tD3Y6dM0+xQ@mail.gmail.com">
      <div>
        <div dir="ltr" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div><b><font size="2"><span
                                            class="gmail_default"
                                            style="font-family:monospace;font-size:large">Thanks
                                            Hilaire!</span></font></b></div>
                                    <div><b><font size="2"><span
                                            class="gmail_default"
                                            style="font-family:monospace;font-size:large">cheers</span></font></b></div>
                                    <div><b><font size="2"><span
                                            class="gmail_default"
                                            style="font-family:monospace;font-size:large"></span></font></b></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
  </body>
</html>