not sharing files with regional filenames

Bug #287982 reported by matej_bb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LinuxDC++
Fix Released
Medium
Unassigned

Bug Description

I use linuxdcpp 1.02 and I have plenty of files with slovak/czech filenames. But these are not shared, while other files in the same directory, which contain only english characters, are being shared finely. How do I fix this?

Tags: filename
Revision history for this message
qwertitis (qwertitis-deactivatedaccount) wrote :

Confirmed, if there are non-utf8-encoded filenames, all kinds of errors can be seen.

How to make test case in bash:
1. Use UTF-8 locale.
2. Run the following script in sh:

-------8<-------
#!/bin/sh
echo -e 'file-not-utf8-\0231' | xargs touch
mkdir dir
cd dir
echo -e 'file-in-dir-not-utf8-\0231' | xargs touch --
cd ..
echo -e 'directory-not-utf8-\0231' | xargs mv dir --
------->8-------

You'll have this hierarchy:
file-not-utf8-?
directory-not-utf8-?
+- file-in-dir-not-utf8-?

Please know that many less than industrial-strength utilities don't like this at all: be careful.

@matej_bb: Are your filenames utf-8 encoded?

Changed in linuxdcpp:
status: New → Confirmed
Changed in linuxdcpp:
importance: Undecided → Medium
Revision history for this message
lys (lys) wrote :

also affects my mp3 collection : even with : LANG=en_GB.utf8
LC_CTYPE=en_GB.utf8
LC_NUMERIC=en_GB.utf8
LC_TIME=en_GB.utf8
LC_COLLATE=en_GB.utf8
LC_MONETARY=en_GB.utf8
LC_MESSAGES=en_GB.utf8
LC_PAPER=en_GB.utf8
LC_NAME=en_GB.utf8
LC_ADDRESS=en_GB.utf8
LC_TELEPHONE=en_GB.utf8
LC_MEASUREMENT=en_GB.utf8
LC_IDENTIFICATION=en_GB.utf8
LC_ALL=

Revision history for this message
matej_bb (matej-bb) wrote :

I think this is solved since 1.03, if everything works as it should, all files shared ...

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

lys is this solved for you like it is for matej_bb? I was unable to reproduce it myself. If we could use glib's g_filename_to_utf8 it would reduce the likelihood of this occurring, but we can't since the core can't have a dependence on glib.

Revision history for this message
matej_bb (matej-bb) wrote : Re: [Bug 287982] Re: not sharing files with regional filenames

Hi,
yes, it is solved for me a long time ago, since 1.0.3 if I remember
correctly.
Sincerely,
Matej

Steven Sheehy napsal(a):
> lys is this solved for you like it is for matej_bb? I was unable to
> reproduce it myself. If we could use glib's g_filename_to_utf8 it would
> reduce the likelihood of this occurring, but we can't since the core
> can't have a dependence on glib.
>

Changed in linuxdcpp:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.