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

UNICODE_SPACE : character ' ' cannot be specified by a universal character name #1248

Closed
MartinPape opened this issue Mar 22, 2022 · 2 comments

Comments

@MartinPape
Copy link

Hi,

while using DTCoreText (via CocoaPod) and building in Xcode 13.2.1 I get the error:

DTCoreTextConstants.h:10:25: error: character ' ' cannot be specified by a universal character name
#define UNICODE_SPACE @"\u0020"

I can comment the line in DTCoreTextConstants.h and the build runs OK. Also building via command-line on Xcode 13.2.1 works OK (without commenting the line).
Does anyone has similar problems? Maybe a switch in Xcode to switch this check off.

Please advice - Martin Pape

@odrobnik
Copy link
Collaborator

@MartinPape Thanks for the report and tests you did. I was able to verify that this constant isn't used anywhere and so I removed it. The other unicode spaces ARE being used though.

@MartinPape
Copy link
Author

@odrobnik Thanks for the swift feedback and fix!

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

2 participants