[PATCH] D92180: Speedup some unicode rendering
    Adrien Guinet via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Nov 28 11:08:31 PST 2020
    
    
  
aguinet added inline comments.
================
Comment at: llvm/lib/Support/Unicode.cpp:359
+    if (Length == 1) {
+      if (!isprint(Text[i]))
+        return ErrorNonPrintableCharacter;
----------------
According to `isprint` man page, the result depends on the current locale. Is this the behavior we want? Maybe checking for the printable ASCII character range "by hand" would make this code more portable?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92180/new/
https://reviews.llvm.org/D92180
    
    
More information about the llvm-commits
mailing list