GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: cherry-pick libuv/libuv@d09441c · nodejs/node@cb49f31

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/uv/src/win
    • fs.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/uv/src/win/fs.c‎

Copy file name to clipboardExpand all lines: deps/uv/src/win/fs.c
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ static int32_t fs__decode_wtf8_char(const char** input) {
176176
if ((b4 & 0xC0) != 0x80)
177177
return -1; /* invalid: not a continuation byte */
178178
code_point = (code_point << 6) | (b4 & 0x3F);
179-
if (b1 <= 0xF4)
179+
if (b1 <= 0xF4) {
180+
code_point &= 0x1FFFFF;
180181
if (code_point <= 0x10FFFF)
181182
return code_point; /* four-byte character */
183+
}
182184

183185
/* code point too large */
184186
return -1;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.