[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about how to implement pickles/utf8.pk
From: |
Jose E. Marchesi |
Subject: |
Re: Questions about how to implement pickles/utf8.pk |
Date: |
Thu, 17 Sep 2020 09:32:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> ## Question 4
>>>
>>> I cannot write `utf8_encode` function for `UTF8_1`, because union
>>> construction
>>> does not work (like the problem for pinned structs [Bug 26527][2]).
>>
>>I am not aware of any problem with union constructors. How they don't
>>work?
>
> I mean field initialization doesn't work (like in pinned structs).
>
> ```
> (poke) UTF8_1 {d2=[0xd8UB, 0xb3UB]}
> UTF8_1 {d1=[0x0UB]}
> ```
Hm, you are right, it is the same problem.