escape sequence problem

Hi,

I have a problem in PhAB and creating a menu.

I add a menu item with text “Pøesunout”, ø - is Czech softness r

After compile is warning in log:
/ablinks.h 13: warning: escape sequence out of range for character

and line 13 in ablinks.h is:
{ 1,1,0,NULL,0,“mnumove”,“P\xC5\x99esunout”,NULL},

  • after started project is menu item noncorrect show.

If I menu item write with space after special character (“Pø esunout”), menu
is show correct.
and line 13 in ablinks.h is:
{ 1,1,0,NULL,0,“mnumove”,“P\xC5\x99 esunout”,NULL},

I think, problem is at escape sequence \x99.
With space in text is esacape = \x99 but without space in text is escape =
\x99e - and this is another escape sequece

How I fix this problem or how ending escape seqence ???

tem wrote:

I have a problem in PhAB and creating a menu.

I add a menu item with text “Pøesunout”, ø - is Czech softness r

After compile is warning in log:
/ablinks.h 13: warning: escape sequence out of range for character

and line 13 in ablinks.h is:
{ 1,1,0,NULL,0,“mnumove”,“P\xC5\x99esunout”,NULL},

  • after started project is menu item noncorrect show.

If I menu item write with space after special character (“Pø esunout”), menu
is show correct.
and line 13 in ablinks.h is:
{ 1,1,0,NULL,0,“mnumove”,“P\xC5\x99 esunout”,NULL},

I think, problem is at escape sequence \x99.
With space in text is esacape = \x99 but without space in text is escape =
\x99e - and this is another escape sequece

How I fix this problem or how ending escape seqence ???

It’s a bug in PhAB. I have added it to our bug database. Thanks for
finding it.

If you want to fix the code yourself, you can use extra quotes
(“P\xC5\x99” “sunout”) or an octal sequence (“P\xC5\231esunout”). Of
course, PhAB will overwrite your fix the next time the code is generated.

You could also write a small program that fixes ablinks.h for you, and
add lines to your Makefiles to run it every time a new ablink has been
generated.