Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Sadly JavaScript's 16bit strings are broken.

Then again, they're broken like most other "unicode" string types (Java's and C#'s, Python's — default — narrow builds until Python 3.3, Cocoa in some ways, etc...) in that the string "API" produces user-facing "UCS-2 plus surrogates" so it's nothing new under the sun.



At least on Linux — default — wide build:

  $ /usr/bin/python -c'import sys; print sys.maxunicode'
  1114111


> At least on Linux — default — wide build:

No, on your linux distribution it's setup with a wide build, the default compile option in the upstream package is narrow build on all platforms.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: