Skip to content

Commit 456e9da

Browse files
yutannihilationlionel-
authored andcommitted
Use useBytes = TRUE (#59)
1 parent ec61d1c commit 456e9da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
# vdiffr 0.3.0.9000
33

4+
- Fix warnings in non-UTF-8 MBCS locale (#59, @yutannihilation).
5+
46

57
# vdiffr 0.3.0
68

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ capitalise <- function(x) {
2828
}
2929

3030
read_file <- function(file) {
31-
readChar(file, file.info(file)$size)
31+
readChar(file, file.info(file)$size, useBytes = TRUE)
3232
}
3333

3434
package_version <- function(pkg) {

0 commit comments

Comments
 (0)