Nethserver-sssd-remove-provider : accentuated characters not correctly handled

NS 7.4 final
Hi,

nethserver-sssd-remove-provider doesn’t handle the accentuated characters correctly when creating users.tsv and groups.tsv.

The file’s charset is unknown,

file -i users.tsv 
users.tsv: text/plain; charset=unknown-8bit

Actually the contents looks like a mixup of Latin1 and UTF-8. Please try with names containing apostrophes ( ’ ) and accents ( é è ç, …)

The apostrophe looks coded as UTF-8, while the accentuated chars are in latin1. See screenshots.

Txs

2 Likes

This is the script which does the job:

Anyone want to try to hack it? :smiley:

Me :blush:

Clap your hands for pagaille’s first splash into the perl world :slight_smile:

6 Likes

Excellent work!!

Thank you pagaille!

1 Like

In nethserver-testing:

yum install http://packages.nethserver.org/nethserver/7.4.1708/testing/x86_64/Packages/nethserver-sssd-1.3.3-1.3.gfbbf95a.ns7.noarch.rpm
2 Likes

I tested the patch (manually applied) on two different systems recently and didn’t noticed any problem.

2 Likes

Can I close that? Ehi @pagaille sorry for coming late to the party. Great shoot!

Yes you can ! It is solved and merged. Txs

1 Like