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

testing

(Matthieu Gaillet) #1

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


(Giacomo Sanchietti) #2

This is the script which does the job:

Anyone want to try to hack it? :smiley:


(Matthieu Gaillet) #3

Me :blush:

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


(Giacomo Sanchietti) #4

Excellent work!!

Thank you pagaille!


(Davide Principi) #5

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

(Matthieu Gaillet) #6

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


(Alessio Fattorini) #7

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


(Matthieu Gaillet) #8

Yes you can ! It is solved and merged. Txs


(Alessio Fattorini) #9