![](https://secure.gravatar.com/avatar/a52180e24a72c78dc830624b240c5795.jpg?s=120&d=mm&r=g)
Hi Simon, Simon Gloßner wrote:
Hi,
On Monday, 30. June 2008 12:15:47 Johannes Winkelmann wrote:
I've started a script to replace maintainer lines with "unmaintained". [...] Opinions, patches?
I've tried your script; it seems to be quite nice, but it has some problems with encodings. It doesn't like the 'ß' in my name.
After using it on a port, the Maintainer line looks like this: "# Maintainer: unmaintained, maintainer-wanted at crux dot nußner, viper at hometux dot de"
The problem is, that my system's locale is UTF-8 but the Pkgfile is encoded in latin1. I guess it's a rather special problem and fixing it won't be easy. Well, why not migrate all our Pkgfiles to UTF-8, are there some problem with that?
I write some lines to recode files and seems that works fine. (Also could be extensible for any file's port) --- #!/bin/bash repo=opt for i in $(find /usr/ports/$repo -type f -name Pkgfile); do enc="$(file $i | awk '{print $2}')" [ "${enc}" == "ISO-8859" ] && enc="ISO-8859-1" recode -v ${enc}..UTF-8 $i done --- Best regards, Jose V Beneyto