Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with dIsSpace with UTF8 text #155

Open
lukaspj opened this issue May 30, 2020 · 0 comments
Open

Problem with dIsSpace with UTF8 text #155

lukaspj opened this issue May 30, 2020 · 0 comments

Comments

@lukaspj
Copy link
Contributor

lukaspj commented May 30, 2020

This issue was created in the GarageGames Repository (Link to original issue).
The issue was originally created by @jamesu and had a total of 2 comments that may contain additional information. The original issue description is pasted below:

If you attempt to use dIsspace on UTF8 text which uses high ranged unicode characters (e.g. japanese text), you may get an assert in a DEBUG build on windows due to the character value being out of range for ASCII. This prevents such text from being passed to several functions making it slightly impractical to use international text in Torque3D, at least in windows.

I should also note that technically calling dIsspace on a UTF8 character is not quite correct as there are several space characters in unicode which don't fit into a single UTF8 character.

Affected functions:

  • TrimFirstWord
  • CodeBlock::exec (OP_ITER)
  • isspace ConsoleFunction
  • sParseList
  • sGetArgNameAndType
  • Namespace::Entry::getDocString
  • parseFunctionArgumentNames
  • GFont::wrapString
  • GFXGLShader::_handleIncludes
  • GuiTextEditCtrl::findPrevWord
  • String::trim
  • String::GetTrailingNumber
  • nat_isspace
  • SplitSequencePathAndName
Areloch added a commit that referenced this issue Jun 5, 2020
expose explosion.initialnormal to script for fine grained directional control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant