Hello,
is this expected behaviour? Tested with 21.5.28 and 21.5.29
rm -f xx.txt; gnuclient xx.txt # -> coding system UTF8
rm -f xx.txt; touch xx.txt ;gnuclient xx.txt # -> coding system Auto/undecided
rm -f xx.txt; echo " " >xx.txt ;gnuclient xx.txt # -> coding system
UTF8
0-sized files are in my configuration always read with an Auto/undecided coding
system. Worse yet, upon saving no sensible coding is selected - texts with accents
or foreign chars get munged.
My settings are this:
custom.el:
'(buffer-file-coding-system 'utf-8 t)
'(buffer-file-coding-system-for-read 'utf-8 t)
'(buffer-process-coding-system 'utf-8)
'(default-buffer-file-coding-system 'utf-8 t)
'(default-file-coding-system 'utf-8)
'(edict-default-coding-system 'utf-8)
'(file-coding-system 'utf-8 t)
'(file-coding-system-for-read 'utf-8 t)
init.el:
(set-coding-priority-list '(utf-8))
(set-coding-category-system 'utf-8 'utf-8)
(set-default-file-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-default-buffer-file-coding-system 'utf-8)
(setq buffer-file-coding-system-for-read 'utf-8)
In my (very) old .xemacs/init.el I also had an additional
(set-default-coding-systems 'utf-8)
which does no longer exist but apparently cured the problem. Afaicr 0-sized
files caused me some coding system related trouble even in 21.4.8 which was
fixed with the above setting.
Regards
Richard
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta