Skip to content

Autoreload not working when page or directory name is in Chinese #436

@a1ess

Description

@a1ess

Context

To test this issue I created a new local test site using the latest version of Zensical (0.0.26), installed with pip on a Linux system (Debian 13).

Bug description

I created a new site using zensical new and added two directories and a few files, as shown below:

├─docs/
   ├─ eng/
       ├─ test-en.md
       ├─ 測試英文.md 
   ├─ 中文/
       ├─ test-zh.md 
       ├─ 測試中文.md 
|
 zensical.toml

After starting the server with zensical serve, the only page the autoreloads in the browser when modified is docs/eng/test-en.md. The pages with Chinese names, or the pages inside a directory whose name is in Chinese are regenerated correctly by Zensical, but to see the changes it is necessary to manually reload the page in the browser.

The same happens when new files are created. Only those created in the directory tree that use only Latin characters are automatically reloaded and shown in the browser.

I'm using Firefox v. 148.0.2, but the same happens in Chromium (144.0.7559.103).

Related links

Reproduction

test-site.zip

Steps to reproduce

  1. Run zensical serve
  2. Go to each page of the test-site
  3. Modify the page while displaying it in the browser
  4. Check if the page is automatically reloaded
  5. Try to create new files in the two directories (the one with Latin characters and the one with Chinese characters), and check if they are automatically added to the side bar).

Browser

Firefox, Chromium

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions