Hi Hauke,
Sorry about the delay in responding, lost this response. I need to respond linearly to the comments.
The response to umask command is 0002 which gives file permissions 0664. I should have looked at the permissions before responding instead of relying on my memory.:)
There is a section that appears similar to your possible fix:
# Custom file save routine to handle unicode files
sub SaveUTF {
my ( $w, $filename ) = @_;
$filename = $w->FileName unless defined $filename;
my $dir = dirname($filename);
my $perms = ( stat($dir) )[2] & 07777;
unless ( $perms & 0200 ) {
$perms = $perms | 0200;
chmod $perms, $dir
or $w->BackTrace("Can not write to directory $dir: $!\n")
and return;
}
Regards, Wayne