Re: [Phix] ? operator; string behavior

new topic     » goto parent     » topic index » view thread      » older message » newer message

Testing Phix and WEE.

Irv's patch now makes WEE work in utf8: WEE, puts, terminal, office, and internet now all work in utf8.

Pete's Phix patch makes ? operator behave.

Phix ? operator

  • ? string of plain-text characters is output as text
  • ? string of utf8 characters is output as numbers
? "hello"        -- PLAIN TEXT  
    --> "hello" 
   
     
?  "ΕίČ░☼□"   -- UTF8 TEXT 
    -->{195,133,195,159,196,140,226,150,145,226,152,188,226,150,161} 
  • puts will output utf8 text
puts(1,"ΕίČ░☼□") 
--> ΕίČ░☼□ 
  • ? will output plain-text in its literal form
  • puts outputs text; control characters are active
-- literal (control characters not active) 
? "--- \n ---" 
 
/* 

"--- \n" ---" 
*/ 
-- control characters active 
 
puts(1, "--- \n ---" )     
/* 

--- 
--- 
*/ 

I now have WEE able to output utf8 to a terminal.

The Phix ? operator does not output utf8 text to a terminal.

Should the ? operator output utf8 strings?

_tom

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu