Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007274 [Squeak] Kernel major always 01-25-09 11:27 01-25-09 11:37
Reporter lucian3 View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0007274: Date class>>fromString: cannot handle dates that contain a day name or day abbreviation at the beginning (FIX)
Description Date class>>fromString: and TimeStamp class>>fromString: (the latter uses the former) cannot handle date strings that contain a day name or abbreviation at the beginning offset by a period, comma or whitespace as is common in many date formats.
Additional Information
Attached Files  Date class-readFrom.st [^] (1,367 bytes) 01-25-09 11:27
 Date class-skipDayName.st [^] (638 bytes) 01-25-09 11:28
 DateTest-testReadFrom.st [^] (552 bytes) 01-25-09 11:28
 Date class-readFrom7274.st [^] (1,367 bytes) 01-25-09 11:30
 Date class-skipDayName7274.st [^] (638 bytes) 01-25-09 11:31
 DateTest-testReadFrom7274.st [^] (552 bytes) 01-25-09 11:31

- Relationships

- Notes
(0012935 - 467 - 479 - 479 - 479 - 479 - 479)
lucian3
01-25-09 11:37

The first file modifies readFrom: to call #skipDayName: if the date begins with a letter. The second file contains #skipDayName:, which will remove a sequence of letters from the stream and see if it matches a valid day name or abbreviation. If not, it will push it back onto the stream.

The third file modifies the readFrom: test case to test dates with day names/abbreviations in them. I replaced the multiple nearly identical #assert: statements with iteration.
 

- Issue History
Date Modified Username Field Change
01-25-09 11:27 lucian3 New Issue
01-25-09 11:27 lucian3 File Added: Date class-readFrom.st
01-25-09 11:28 lucian3 File Added: Date class-skipDayName.st
01-25-09 11:28 lucian3 File Added: DateTest-testReadFrom.st
01-25-09 11:30 lucian3 File Added: Date class-readFrom7274.st
01-25-09 11:31 lucian3 File Added: Date class-skipDayName7274.st
01-25-09 11:31 lucian3 File Added: DateTest-testReadFrom7274.st
01-25-09 11:37 lucian3 Note Added: 0012935


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
43 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker