You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Harbs <ha...@gmail.com> on 2025/03/13 07:59:26 UTC
Change to MXML parsing?
I have an attribute in MXML which looks like this:
suffix="\u00B0”
This used to correctly set the “suffix” property to the specified unicode value. Currently it seems like it’s parsed as a \\u00B0 literal string.
I’m not sure when this changed.
Re: Change to MXML parsing?
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
It looks like the Flex SDK compiler supports \uXXXX in MXML even though it
doesn't support others like \n and \t. I'll get it fixed.
--
Josh Tynjala
Bowler Hat LLC
https://bowlerhat.dev/
On Thu, Mar 13, 2025 at 9:09 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> It's probably this commit:
>
>
> https://github.com/apache/royale-compiler/commit/5dde356731d622fecf61720c3b9d321b5bac743f
>
> I will double-check to see how the Flex SDK compiler behaves with unicode
> escape sequences in MXML.
>
> You may need to switch to ° instead.
>
> --
> Josh Tynjala
> Bowler Hat LLC
> https://bowlerhat.dev/
>
>
> On Thu, Mar 13, 2025 at 1:00 AM Harbs <ha...@gmail.com> wrote:
>
>> I have an attribute in MXML which looks like this:
>>
>> suffix="\u00B0”
>>
>> This used to correctly set the “suffix” property to the specified unicode
>> value. Currently it seems like it’s parsed as a \\u00B0 literal string.
>>
>> I’m not sure when this changed.
>
>
Re: Change to MXML parsing?
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
It's probably this commit:
https://github.com/apache/royale-compiler/commit/5dde356731d622fecf61720c3b9d321b5bac743f
I will double-check to see how the Flex SDK compiler behaves with unicode
escape sequences in MXML.
You may need to switch to ° instead.
--
Josh Tynjala
Bowler Hat LLC
https://bowlerhat.dev/
On Thu, Mar 13, 2025 at 1:00 AM Harbs <ha...@gmail.com> wrote:
> I have an attribute in MXML which looks like this:
>
> suffix="\u00B0”
>
> This used to correctly set the “suffix” property to the specified unicode
> value. Currently it seems like it’s parsed as a \\u00B0 literal string.
>
> I’m not sure when this changed.
Re: Change to MXML parsing?
Posted by Gabe Harbs <ha...@gmail.com>.
Awesome. Thanks.
> On Mar 13, 2025, at 7:18 PM, Josh Tynjala <jo...@bowlerhat.dev> wrote:
>
> Fixed the following commit:
>
> https://github.com/apache/royale-compiler/commit/e398fd6a800cc34436551a3161580f9e98d169f0
>
> I confirmed in the flex-sdk compiler codebase that \u escape sequences are
> specifically allowed in MXML strings, unlike other escape sequences like \n
> and \t.
>
> --
> Josh Tynjala
> Bowler Hat LLC
> https://bowlerhat.dev/
>
>
> On Thu, Mar 13, 2025 at 1:00 AM Harbs <ha...@gmail.com> wrote:
>
>> I have an attribute in MXML which looks like this:
>>
>> suffix="\u00B0”
>>
>> This used to correctly set the “suffix” property to the specified unicode
>> value. Currently it seems like it’s parsed as a \\u00B0 literal string.
>>
>> I’m not sure when this changed.
Re: Change to MXML parsing?
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Fixed the following commit:
https://github.com/apache/royale-compiler/commit/e398fd6a800cc34436551a3161580f9e98d169f0
I confirmed in the flex-sdk compiler codebase that \u escape sequences are
specifically allowed in MXML strings, unlike other escape sequences like \n
and \t.
--
Josh Tynjala
Bowler Hat LLC
https://bowlerhat.dev/
On Thu, Mar 13, 2025 at 1:00 AM Harbs <ha...@gmail.com> wrote:
> I have an attribute in MXML which looks like this:
>
> suffix="\u00B0”
>
> This used to correctly set the “suffix” property to the specified unicode
> value. Currently it seems like it’s parsed as a \\u00B0 literal string.
>
> I’m not sure when this changed.