mirror of
https://github.com/denoland/deno.git
synced 2025-01-05 22:09:02 -05:00
Use Utf8 instead of ASCII in TextDecoder
See https://github.com/denoland/deno/issues/1288
This commit is contained in:
parent
5fbbc2c46c
commit
718d1da853
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
import { BufReader, BufState } from "./bufio.ts";
|
import { BufReader, BufState } from "./bufio.ts";
|
||||||
import { charCode } from "./util.ts";
|
import { charCode } from "./util.ts";
|
||||||
|
|
||||||
const asciiDecoder = new TextDecoder("ascii");
|
const asciiDecoder = new TextDecoder();
|
||||||
function str(buf: Uint8Array): string {
|
function str(buf: Uint8Array): string {
|
||||||
if (buf == null) {
|
if (buf == null) {
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue