Skip to content

Commit

Permalink
[69] Bug: Inconsist encoding to include a file with unicode filename
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Nov 21, 2023
1 parent 8d0166b commit e52da4d
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 3 deletions.
33 changes: 33 additions & 0 deletions TeXmacs/tests/69_5.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<TeXmacs|2.1.2>

<style|<tuple|generic|british>>

<\body>
<doc-data|<doc-title|Test doc to include a file with unicode filename>>

<include|69_5_\<#4E2D\>\<#6587\>\<#540D\>.tm>

\;
</body>

<\initial>
<\collection>
<associate|page-medium|paper>
</collection>
</initial>

<\references>
<\collection>
<associate|part:69_5_中文名.tm|<tuple|?|1>>
<associate|part:69_5_\<#4E2D\>\<#6587\>.tm|<tuple|?|?>>
<associate|part:69_5_\<#4E2D\>\<#6587\>\<#540D\>.tm|<tuple|?|?>>
</collection>
</references>

<\auxiliary>
<\collection>
<\associate|parts>
<tuple|69_5_中文名.tm|chapter-nr|0|section-nr|0|subsection-nr|0>
</associate>
</collection>
</auxiliary>
13 changes: 13 additions & 0 deletions TeXmacs/tests/69_5_中文名.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<TeXmacs|2.1.2>

<style|generic>

<\body>
This is a file to be included.
</body>

<\initial>
<\collection>
<associate|page-medium|paper>
</collection>
</initial>
5 changes: 3 additions & 2 deletions devel/69.tm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<style|<tuple|tmdoc|chinese|devel>>

<\body>
<tmdoc-title|Improvements on styles for Chinese users>
<tmdoc-title|Improvements for Chinese users>

<section|Tasks>

Expand All @@ -12,7 +12,8 @@
cite* should not use italic font>>|<row|<cell|Chore>|<cell|69_3>|<cell|<value|da>>|<cell|Chinese:
do not use italic font for the render-theorem
body>>|<row|<cell|Chore>|<cell|69_4>|<cell|<value|da>>|<cell|Chinese: use
bold font for dfn>>>>>
bold font for dfn>>|<row|<cell|Bug>|<cell|<dlink|69_5>>|<cell|<value|da>>|<cell|Inconsist
encoding to include a file with unicode filename>>>>>

<tmdoc-copyright|2023|Darcy>

Expand Down
39 changes: 39 additions & 0 deletions devel/69_5.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<TeXmacs|2.1.2>

<style|<tuple|tmdoc|british|devel>>

<\body>
<tmdoc-title|Inconsist encoding to include a file with unicode filename>

<section|Bug Metadata>

<\itemize>
<item>Reporter: Darcy

<item>Owner: Darcy

<item>Tester: Darcy
</itemize>

<section|How to reproduce it>

See <slink|../TeXmacs/tests/69_5.tm>. The filename to include contains
Chinese, it should be in cork encoding like the normal Chinese text once
included. When we change the filename in the focus toolbar, its encoding
will be changed into cork encoding. But the inclusion failed to work.

<tmdoc-copyright|2023|Darcy>

<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>

<\initial>
<\collection>
<associate|page-medium|papyrus>
</collection>
</initial>
2 changes: 1 addition & 1 deletion devel/release_1.2.0.tm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
red>|<cwith|22|22|1|1|cell-background|pastel
red>|<cwith|29|29|3|3|cell-valign|b>|<cwith|30|30|1|1|cell-valign|b>|<cwith|9|9|2|2|cell-valign|c>|<cwith|4|4|2|2|cell-valign|c>|<table|<row|<cell|<dlink|70>>|<cell|<value|da>>|<cell|Syntax
Highlight on programming languages>>|<row|<cell|<dlink|69>>|<cell|<value|da>>|<cell|Improvements
on styles for Chinese users>>|<row|<cell|<dlink|68>>|<cell|<value|da>>|<cell|Improvements
for Chinese users>>|<row|<cell|<dlink|68>>|<cell|<value|da>>|<cell|Improvements
on PDF image and conversion>>|<row|<cell|<dlink|64>>|<cell|>|<cell|Image
import and exports>>|<row|<cell|<dlink|63>>|<cell|>|<cell|Fixing style
corruption>>|<row|<cell|<dlink|62>>|<cell|Darcy>|<cell|Mogan STEM
Expand Down

0 comments on commit e52da4d

Please sign in to comment.