Issue527

classification
Title coding system oddity
Type defect Module core code 21.5
Severity inconvenience Platform N/A
Keywords
explanation
process
These optional controls are only of interest to committers and tracker administrators.
Status closed   Reason fixed
Superseder   Submitted 2009-06-05.02:36:04
Priority normal   Assigned To
Nosy List aidan, stephen  

Created on 2009-06-05.02:32:38 by stephen, last changed 2010-01-12.13:44:07 by aidan.

Messages
msg1972 [hidden] ([hidden]) Date: 2009-11-07.13:53:03
  Message-ID: <1257601983.88.0.0873087127257.issue527@xemacs.org>
issue148 should be supersede by this one
msg1689 [hidden] ([hidden]) Date: 2009-07-26.21:55:15
  Message-ID: <1248645315.43.0.070828398946.issue527@xemacs.org>
In order of relevance, these commits address this issue: 

http://hg.debian.org/hg/xemacs/xemacs/rev/a90b63846dc4fe2168958cf8b630331f03b59b1c
http://hg.debian.org/hg/xemacs/xemacs/rev/
321a6b6b9ffe7d76ad88eb4cd4fe3b1c29186577
http://hg.debian.org/hg/xemacs/xemacs/rev/13273cffca2abd0280bd79d8c1fb8e11db1dbefd

Also, it's an aesthetic issue, and irrelevant to this bug, but I don't
like the kaizen tendencies of the done/needs work status. I would like a
status indicating ‘I have done as much on this as I think is reasonable,
given what is needed, and probably more’ and I don't have one. Though I
suppose the ‘fixed’ reason is satisfying enough.
msg1683 [hidden] ([hidden]) Date: 2009-07-26.17:49:20
  Message-ID: <1248630560.91.0.368787419099.issue527@xemacs.org>
Is this issue fixed?  If so, please add Mercurial commit id(s) and close.  
If I'm mistaken and this is a different issue from the one I think it is, 
feel free to keep it or assign it back to me.
msg1253 [hidden] ([hidden]) Date: 2009-07-01.15:09:39
To stephen: ISTR Aidan had some comments?  Check.
msg1212 [hidden] ([hidden]) Date: 2009-06-05.02:32:38
  Message-ID: <87d49jh0ff.fsf@uwakimon.sk.tsukuba.ac.jp>
Richard Zidlicky writes:

 > 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

This is not expected.  It's not hard to imagine the code the leads to
this result, but it's incorrect; we'll fix it.  (I don't see a hurry,
it may take some time.  Patches welcome!)  The undecided coding system
is a sentinel, and should always be changed as the end result of
autodetection, presumably to default-buffer-file-coding-system in the
case 

 > Worse yet, upon saving no sensible coding is selected --

This is a different bug (a user could set buffer-file-coding-system).
In the case of buffer-file-coding-system(-for-write) being 'undecided
or similar, the writer function (output might not be to a file) should
error.

 > Worse yet, upon saving no sensible coding is selected - texts with
 > accents or foreign chars get munged.

And this is a third bug.  I thought Aidan had fixed this, but I guess
it's only for his new unibyte coding systems.

 > 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.

If you don't mind explaining, how are you in this situation frequently
enough to figure out what happened, let alone care?  I don't think
I've ever edited an existing file with zero-size.  If there's a common
workflow that leads to this, maybe there's more hurry than I thought.
History
Date User Action Args
2010-01-12 13:44:07aidansetstatus: done/needs work -> closed
2009-11-07 13:53:03FKtPpsetmessages: + msg1972
2009-11-07 13:50:15FKtPplinkissue148 superseder
2009-07-26 21:55:15aidansetstatus: new -> done/needs work
reason: fixed
messages: + msg1689
2009-07-26 17:49:20stephensetassignedto: stephen -> aidan
messages: + msg1683
nosy: + aidan
2009-07-01 15:09:39stephensetstatus: new
severity: inconvenience
platform: + N/A
messages: + msg1253
module: + core code 21.5
priority: normal
assignedto: stephen
type: defect
2009-06-05 02:32:38stephencreate