Skip to content

[ioslide] Only do the chcp setting with Pandoc before 2.0 - #2481

Merged
cderv merged 1 commit into
mainfrom
fix/ioslide-chcp
May 2, 2023
Merged

cderv merged 1 commit into
mainfrom
fix/ioslide-chcp

Conversation

@cderv

@cderv cderv commented Apr 28, 2023 •

Copy link
Copy Markdown
Collaborator

To fix #2480

This usage of chcp was introduced in 955ebae to fix #134 - quite old code.

It was pre pandoc 2.0 and accompanied with an issue upstream jgm/pandoc#2101

I believe pandoc now handles directly this better and this is not needed anymore. I suggest to not do that anymore when Pandoc 2 or above.

@yihui any argument against this ?

I could also try to fix the proper issue, but I believe this is something related to encoding between what system call returns and the OS or R encoding.

EDIT: I investigated at #2480 (comment) and it seems this is R 4.3 big change on Windows

This usage of chcp was introduced in 955ebae to fix #134

It was pre pandoc 2.0 and accompanied with an issue upstream jgm/pandoc#2101

I believe pandoc now handles directly this better and this is not needed anymore. Let's see

@yihui yihui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! I'm always for getting rid of old hacks.

@cderv
cderv merged commit 9568cde into main May 2, 2023
@cderv
cderv deleted the fix/ioslide-chcp branch May 2, 2023 14:13
j-magnolia added a commit to j-magnolia/rmarkdown that referenced this pull request May 17, 2023
* rstudio/main: (25 commits)
  Add missing new param for the function collection
  re-document following fce12fb
  Remove no more needed YAML validation for ending :
  [ioslide] Only do the chcp setting with Pandoc before 2.0 (rstudio#2481)
  Add a `pandoc_metadata_file_arg` helper
  Add mention of webshot and webshot2 required for screenshot to be made
  start the next version
  CRAN release v2.21
  fix rstudio#2469: use all(is_blank()) for xfun 0.38
  Fix typo in error message
  Update CITATION.cff
  Fix GHA action regarding older pandoc (rstudio#2466)
  update citation workflow
  Update check pandoc daily
  Allow manual trigger of checks
  Bring back Pandoc version in workflow name
  Update lock workflow
  Prefer pak usage for dev version now
  Update GHA workflow
  adapt CITATION file
  ...
j-magnolia added a commit to j-magnolia/rmarkdown that referenced this pull request May 17, 2023
* jg-devel: (25 commits)
  Add missing new param for the function collection
  re-document following fce12fb
  Remove no more needed YAML validation for ending :
  [ioslide] Only do the chcp setting with Pandoc before 2.0 (rstudio#2481)
  Add a `pandoc_metadata_file_arg` helper
  Add mention of webshot and webshot2 required for screenshot to be made
  start the next version
  CRAN release v2.21
  fix rstudio#2469: use all(is_blank()) for xfun 0.38
  Fix typo in error message
  Update CITATION.cff
  Fix GHA action regarding older pandoc (rstudio#2466)
  update citation workflow
  Update check pandoc daily
  Allow manual trigger of checks
  Bring back Pandoc version in workflow name
  Update lock workflow
  Prefer pak usage for dev version now
  Update GHA workflow
  adapt CITATION file
  ...
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Error Knit ioslides_presentation (R 4.3) ioslides_presentation "Invalid UTF-8 stream" error with  

2 participants