Skip to content

[Linux] Support non-utf8 locale for filename #5719

Closed

Description

@guruz

FYI @ogoffart @DeepDiver1975

Related #5676 [Feature] Filename encoding with gbk standard should be supported

<ogoffart> There is no concept of fs encoding on linux
<ogoffart> Everything has to be encoded with the locale
<jturcotte> You'll also have to deal with chars that you can't convert to his encoding, and you want to make sure that if the user modifies that file that it's sent back to the server with the right name.
<jturcotte> And if the user sees blah???.png weird characters in the file, maybe he'll feel like he has to rename it too, so it shouldn't look too weird.

Challenges: How to handle invalid encodings?
#4811 (comment)

Activity

  1. changed the title [-]Convert local file name encoding to utf8 on server?[/-] [+][Linux] Support non-utf8 locale for filename[/+] on Apr 22, 2017
  2. ogoffart commented on Apr 22, 2017

    @ogoffart
    Contributor

    (I changed the title because there is no need to involve the server, it's purely a client issue)

    How to handle invalid encoding?: The way we currently do it in SyncEngine::treewalkFile, for example.

    qWarning() << "File ignored because of invalid utf-8 sequence: " << file->path;

    (however this has to happen at the time of conversion from the system locale, which has to happen in csync, before the reconcile phase.)

  3. added this to the 2.4.0 milestone on Jul 4, 2017
  4. added
    ReadyToTest
    on Jul 17, 2017
  5. guruz commented on Nov 6, 2017

    @guruz
    ContributorAuthor

    Moving to 2.5 as #5676 was moved too

  6. modified the milestones: 2.4.0, 2.5.0 on Nov 6, 2017
  7. removed
    ReadyToTest
    on Nov 20, 2017
  8. ogoffart commented on Nov 21, 2017

    @ogoffart
    Contributor

    Duplicate of #5676

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions