Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unicode filepath support

Open
#48 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, python
Domain
api

Research direction

Start by tracing the yara.compile() and rules.match() entry points through the Python argument parsing and the file-opening calls mentioned in the issue. Check how filepath handling differs across platforms, especially Windows. Done means both APIs accept Unicode filepaths without requiring an ASCII-only symbolic link.

Written by the indexing model from the issue text.

Description

I'd like to request the ability for yara.compile() as well as rules.match() to support Unicode filepaths. For now a dirty workaround would seem to be creating a temporary symbolic link (containing only ASCII characters) that points to the Unicode filepath. But that naturally doesn't work under Windows, so no luck there unfortunately.
AFAIK changing s to u in the Python argument parsing and fopen to wfopen (or something along those lines) will go a long way. Thanks!

Example situation where support for this would help @ https://github.com/cuckoosandbox/cuckoo/issues/1573

Dominant language
C
Stars
754
Forks
190
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VirusTotal/yara-python

All issues in VirusTotal/yara-python

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.