containers / containers/podman-compose

The "podman compose config" command alters paths with accented characters

Open
#1,536 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
In my docker-compose file I've added bind volumes to host paths. This paths contain some accented characters. When I use the config command this characters are replaced by escaped form but this output is not understandable by "compose up".

**To Reproduce**
Steps to reproduce the behavior:
1. Sample of compose file:
```yaml
services:
sample:
image: docker.io/library/alpine
userns_mode: "keep-id"
volumes:
- type: bind
source: "$HOME/développement"
target: /home/dev
command: sleep infinity
```

Invoke "podman compose config".

**Expected behavior**
The path of source volume must be "/home/guedel/développement".

**Actual behavior**
The path of source volume is "/home/guedel/d\xE9veloppement"

**Output**

```
$ podman-compose version
podman-compose version 1.6.0
podman version 5.8.4

$ echo $LANG
fr_FR.UTF-8
```

**Environment:**
- OS: Nobara Linux 44 Gnome edition

Contributor guide

Open the contributing guide

Research direction

Start by running `podman compose config` with the YAML bind-volume example and the reported UTF-8 locale, then trace the config command's path serialization. Done means accented host paths remain readable, such as `/home/guedel/développement`, and the resulting output works with `compose up`.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, python
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.