Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open long name files with special characters #9

Open
GoogleCodeExporter opened this issue Apr 7, 2015 · 3 comments
Open

Can't open long name files with special characters #9

GoogleCodeExporter opened this issue Apr 7, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open a long file : "C:\test moi ça\vidéo de Dédé qui ne marche pas.avi"
2.
3.

What is the expected output? What do you see instead?
Log says "Can't open file..."

What version of the product are you using? On what operating system?
Windows XP SP2, using VLC 0.8.6e and libvlc-sharp-forms-test rev42 (latest
at 14/15/2008)

Please provide any additional information below.
Maybe add some "MarshalAs" attributes, or add encoding data...

Original issue reported on code.google.com by [email protected] on 14 May 2008 at 4:48

@GoogleCodeExporter
Copy link
Author

Send an actual code snippet you are using when supplying the filename. Adding 
an @
before the text should resolve the issue. The text you provided is not properly
escaping characters such as \.

Here is one example of correcting this:
String sFile = @"C:\test moi ça\vidéo de Dédé qui ne marche pas.avi"

Original comment by [email protected] on 14 May 2008 at 8:05

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

The string comes from a OpenFileDialog.Filename
If I open the "vidéo de Dédé qui ne marche pas.avi", I have a "Can't open 
file" entry
in the log, but in the log, the string appears correctly...

Original comment by [email protected] on 14 May 2008 at 9:27

@GoogleCodeExporter
Copy link
Author

Log message is :

"Warning access access_file  C:\\Divertissements\\Dr House - [1x07] - Question 
De
Fidélité. Dvdrip - FR - [found via www.ed2k-series.org].avi: No such file or 
directory"

Test code :
        private void btnOpen_Click(object sender, EventArgs e)
        {
            if (this.dlgOpen.ShowDialog(this) == DialogResult.OK)
            {
                this._vlc.VlcPlaylist.Stop();
                this._vlc.VlcPlaylist.Clear();
                int id = this._vlc.VlcPlaylist.Add(this.dlgOpen.FileName);
                this._vlc.VlcPlaylist.Play(id);
            }
        }

Original comment by [email protected] on 15 May 2008 at 1:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant