Skip to content

cppcryptfsctl list command doesn't work with Japanese file names. #206

Closed

Description

@Rage-36Yu90

Hello, I'm Japanese.

I'm sorry, but I used Google Translate for this report.


Problem: cppcryptfsctl list command doesn't work with Japanese file names.

Environment:

  • cppcryptfs version: 1.4.4.5
  • Windows 10 64-bit
  • File system: NTFS
  • Language: Japanese file names

Description:

When running cppcryptfsctl.exe -lw:, the command exits unexpectedly if any file or folder name contains Japanese characters.

  • The mounted cppcryptfs volume handles Japanese file names correctly (encryption and decryption both work fine).
  • However, the cppcryptfsctl tool fails to list files with Japanese characters in their names.
  • When a Japanese file name is encountered, the command exits abruptly without listing any further entries.
  • Files with only alphanumeric characters are displayed correctly.

Example:

If the root of the mounted drive W: contains the following files:

20250416-180226-googlecrypt2.txt
20250417-230015-pcloudcrypt3.txt
主要なチェックサム形式のベンチマーク.py

Only the first two are listed:

20250416-180226-googlecrypt2.txt => <Encrypted file name 1>
20250417-230015-pcloudcrypt3.txt => <Encrypted file name 2>

The third file is not shown at all.

Another example:

A file named:

(ChatGPTとのやり取りログ)20250418.txt

will be displayed like this:

cppcryptfsctl.exe -lw:
(ChatGPT

The rest is cut off, and the program exits immediately.

This also happens with folder names.

Activity

  1. bailey27 commented on Apr 21, 2025

    @bailey27
    Owner

    Hello.

    Thank you for reporting this bug.

    It has been fixed in the latest release today.

    https://github.com/bailey27/cppcryptfs/releases/tag/v1.4.4.6

  2. Rage-36Yu90 commented on Apr 24, 2025

    @Rage-36Yu90
    Author

    Thank you very much for the quick fix! It now works perfectly with Japanese filenames.

    I really appreciate your support. 🙏

  3. Rage-36Yu90 commented on Apr 25, 2025

    @Rage-36Yu90
    Author

    Does the "cppcryptfsctl.exe -ld:" command have the ability to list all files and folders in a drive?

    Maybe I'm just not using it correctly...

    When I add a drive and path after "-l", it only shows files and folders in that specific path.

    Also, if the following information could be included in the output, it would be very helpful—especially in case of emergencies:

    • File name (full path)
    • File size
    • Last modified date and time
    • Encrypted file name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions