Skip to content
Novus Examples
ics257 B

Calendar Parsing - Recoverable LF Line Endings (ICS)

A complete iCalendar structure using LF-only line endings, a common recoverable export defect for tolerant parser tests.

Preview — first 12 linesics
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Novus Examples//P6 Calendar//EN
BEGIN:VEVENT
UID:p6-parse-recoverable@novus.example
DTSTAMP:20260731T120000Z
DTSTART:20260808T130000Z
DTEND:20260808T133000Z
SUMMARY:Recoverable line ending case
END:VEVENT
END:VCALENDAR

Specifications

Format
iCalendar 2.0
Encoding
UTF-8
Events
1
Line Endings
LF
Expected Parser Result
recoverable

Testing contract

Expected to recover
Scenario
Import parsing-recoverable-lf.ics and evaluate its published calendar semantics.
Expected result
Accept one event with a recoverable warning that RFC 5545 CRLF line endings were not used.

What is a .ics file?

ICS (iCalendar) is a plain-text format for exchanging calendar data such as events, to-dos, and free/busy time, structured as nested VCALENDAR and VEVENT components with property lines. It encodes start and end times, recurrence rules, and reminders. It is the universal standard for calendar interchange and invitations.

How to use this file

Use an example ICS file to test calendar import, event and recurrence-rule parsing, timezone handling, and interoperability across calendar applications.

How to use this file for testing

“Calendar Parsing - Recoverable LF Line Endings (ICS)” is a deterministic Novus Examples fixture for Calendar parsing, Conversion testing. iCalendar (.ics) files with events, timezones, and recurrence — for testing calendar imports and parsers.

Documented properties for this file: UTF-8 · LF · iCalendar 2.0. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Code examples

from icalendar import Calendar  # pip install icalendar

cal = Calendar.from_ical(open("parsing-recoverable-lf.ics", "rb").read())
for ev in cal.walk("VEVENT"):
    print(ev.get("summary"))

Generated by generation/p6_core.py. Free for any use, no attribution required — license.