Skip to content

Automatically fix file name normalization errors (fixes #430) - #1488

Merged
AudriusButkevicius merged 2 commits into
syncthing:masterfrom
calmh:utf8
Mar 19, 2015
Merged

AudriusButkevicius merged 2 commits into
syncthing:masterfrom
calmh:utf8

Conversation

@calmh

@calmh calmh commented Mar 18, 2015

Copy link
Copy Markdown
Member

When the folder config AutoNormalize is on (which is the default), we automatically fix normalization errors in file names. Most users will never notice. The ones that care about this kind of stuff should be pleased that we fix their inconsistencies.

@AudriusButkevicius

Copy link
Copy Markdown
Member

I guess this is just normalizing values which are valid on all OSes?

@calmh

calmh commented Mar 18, 2015

Copy link
Copy Markdown
Member Author

Yeah, this is just about how to encode the ¨ above the a in ä and so on. We enforce the local convention, or the best guess of one where there isn't one (i.e. NFC). Basically this is what we already do, but now we fix the file names instead of just refusing to sync the files.

@calmh

calmh commented Mar 18, 2015

Copy link
Copy Markdown
Member Author

@st-jenkins run integration tests please

Comment thread internal/scanner/walk.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I'd do this if before the whole thing, set the resulting value to rval and use that reducing loc

@calmh

calmh commented Mar 19, 2015

Copy link
Copy Markdown
Member Author

@AudriusButkevicius Thanks for thinking...

AudriusButkevicius added a commit that referenced this pull request Mar 19, 2015
Automatically fix file name normalization errors (fixes #430)
@AudriusButkevicius
AudriusButkevicius merged commit f568e76 into syncthing:master Mar 19, 2015
@calmh
calmh deleted the utf8 branch March 20, 2015 13:46
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jun 16, 2017
@syncthing syncthing locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants