Skip to content

amulecmd --command="show shared" not displaying accented characters #626

Description

@danim7

Both amuled and amulecmd version 2.3.3-403-g3cb195304 running on Ubuntu 24.04.

When using amulecmd interactively, I can type "show shared" and I get names with accented characters successfully:

 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/333_à
 > 	Auto [Hi] - 0(0) / 0(0) - 0 bytes (0 bytes) - 0.00
 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/222_ok
 > 	Auto [Hi] - 0(3) / 0(3) - 0 bytes (127.55 MB) - 0.06
 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/111_é
 > 	Auto [Hi] - 0(0) / 0(0) - 0 bytes (0 bytes) - 0.00
 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/555_â
 > 	Auto [Hi] - 0(1) / 0(1) - 0 bytes (1.05 MB) - 0.00
 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/444_ü
 > 	Auto [Hi] - 0(1) / 0(1) - 0 bytes (122.26 MB) - 0.07
aMulecmd$ quit

However, if running amulecmd --command="show shared". the names with accented characters are lost. They are not displayed in the console, neither they can be redirected to files or piped to other commands:

$ ./build/src/amulecmd -c "show shared"
This is amulecmd GIT rev. 2.3.3-403-g3cb195304
Enter password for mule connection: 

Creating client...
/home/sandbox/src/amule/amule/src/LibSocketAsio.cpp(1580): Hostname("localhost") failed, not an IP address Invalid argument
/home/sandbox/src/amule/amule/src/LibSocketAsio.cpp(1596): Hostname("localhost") resolved to 127.0.0.1
/home/sandbox/src/amule/amule/src/LibSocketAsio.cpp(203): Connect 127.0.0.1 0x00005bac772d0ef0
Succeeded! Connection established to aMule GIT
?
�P8| > 	Auto [Hi] - 0(0) / 0(0) - 0 bytes (0 bytes) - 0.00
 > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /home/sandbox/.aMule/Incoming/222_ok
 > 	Auto [Hi] - 0(3) / 0(3) - 0 bytes (127.55 MB) - 0.06
?
Ǻ > 	Auto [Hi] - 0(0) / 0(0) - 0 bytes (0 bytes) - 0.00
?
Ǻ > 	Auto [Hi] - 0(1) / 0(1) - 0 bytes (1.05 MB) - 0.00
?
Ǻ > 	Auto [Hi] - 0(1) / 0(1) - 0 bytes (122.26 MB) - 0.07
/home/sandbox/src/amule/amule/src/LibSocketAsio.cpp(360): Destroy() 0x00005bac772d10a8 0x00005bac772d0ef0 127.0.0.1
/home/sandbox/src/amule/amule/src/LibSocketAsio.cpp(491): Closed 127.0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions