Skip to content

Commit

Permalink
fix grep unicode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
walke committed Oct 17, 2019
1 parent 8c8dae0 commit de64819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/GENESISClasses.R
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ readRegDeath <- function(infile)
{
bb <- scan(infile, what=character(), blank.lines.skip = FALSE, encoding="ANSI", sep="\n")

h2 <- grep(";Insgesamt;m\u00e4nnlich",bb)
h2 <- grep(";Insgesamt;m\\xe4nnlich",bb)
f1 <- grep("__________",bb)
f2 <- length(bb)

Expand Down Expand Up @@ -454,7 +454,7 @@ readRegExp <- function(infile)
{
bb <- scan(infile, what=character(), blank.lines.skip = FALSE, encoding="ANSI", sep="\n")

h2 <- grep(";Insgesamt;m\u00e4nnlich",bb)
h2 <- grep(";Insgesamt;m\\xe4nnlich",bb)
f1 <- grep("__________",bb)
f2 <- length(bb)

Expand Down

0 comments on commit de64819

Please sign in to comment.