Changeset 57226 in webkit


Ignore:
Timestamp:
Apr 7, 2010 1:32:13 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-07 Kwang Yul Seo <skyul@company100.net>

Reviewed by Darin Adler.

Replace isprint with isASCIIPrintable
https://bugs.webkit.org/show_bug.cgi?id=37223

WebKit does not use functions in <ctype.h> as they are dependent on the current
locale. Use the equivalent functions in <wtf/ASCIICType.h>. isASCIIPrintable
replaces isprint.

  • pcre/pcre_exec.cpp: (pchars):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r57218 r57226  
     12010-04-07  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Darin Adler.
     4
     5        Replace isprint with isASCIIPrintable
     6        https://bugs.webkit.org/show_bug.cgi?id=37223
     7
     8        WebKit does not use functions in <ctype.h> as they are dependent on the current
     9        locale. Use the equivalent functions in <wtf/ASCIICType.h>. isASCIIPrintable
     10        replaces isprint.
     11
     12        * pcre/pcre_exec.cpp:
     13        (pchars):
     14
    1152010-04-07  Enrica Casucci  <enrica@apple.com>
    216
  • trunk/JavaScriptCore/pcre/pcre_exec.cpp

    r50608 r57226  
    199199    while (length-- > 0) {
    200200        int c;
    201         if (isprint(c = *(p++)))
     201        if (isASCIIPrintable(c = *(p++)))
    202202            printf("%c", c);
    203203        else if (c < 256)
Note: See TracChangeset for help on using the changeset viewer.