From: Ben Pfaff Date: Sat, 27 May 2017 17:30:20 +0000 (-0700) Subject: Document epoch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b84bc4577a96fdafefda66b414fa0eae35e81331 Document epoch. --- diff --git a/dump.c b/dump.c index 6cc9e52abe..c737c01d1d 100644 --- a/dump.c +++ b/dump.c @@ -1031,19 +1031,7 @@ dump_fonts(void) match_byte_assert(0); if (!match_byte(0)) match_byte_assert(1); - if (version > 1) - { - if (!match_byte(0x97) && !match_byte(0x98) - && !match_byte(0x99) && !match_byte(0x9a) && !match_byte(0x9b)) - match_byte_assert(0x9c); - match_byte_assert(7); - match_byte_assert(0); - match_byte_assert(0); - } - else - { - printf("%x\n", get_u32()); - } + printf("%d\n", get_u32()); int decimal = data[pos]; int grouping = data[pos + 1]; @@ -1105,12 +1093,7 @@ dump_fonts(void) if (!match_byte(0)) match_byte_assert(1); - if (!match_byte(0x97) && !match_byte(0x98) - && !match_byte(0x99) && !match_byte(0x9a) && !match_byte(0x9b)) - match_byte_assert(0x9c); - match_byte_assert(7); - match_byte_assert(0); - match_byte_assert(0); + printf("%d\n", get_u32()); if (match_byte('.')) { diff --git a/spv-file-format.texi b/spv-file-format.texi index dff235859b..192c1c3ea1 100644 --- a/spv-file-format.texi +++ b/spv-file-format.texi @@ -901,7 +901,7 @@ X6 @result{} string[@t{command}] string[@t{subcommand}] string[@t{language}] string[@t{charset}] string[@t{locale}] (00 @math{|} 01) 00 (00 @math{|} 01) (00 @math{|} 01) - int + int[@t{epoch}] byte[@t{decimal}] byte[@t{grouping}] byte*8 01 (string[@t{dataset}] string[@t{data file}] i0 int i0)? @@ -918,6 +918,12 @@ such as @code{en_US.windows-1252} or @code{it_IT.windows-1252}. The rest of the character strings in the member use this encoding. The encoding string is itself encoded in US-ASCII. +@code{epoch} is the year that starts the epoch. A 2-digit year is +interpreted as belonging to the 100 years beginning at the epoch. The +default epoch year is 69 years prior to the current year; thus, in +2017 this field by default contains 1948. In the corpus, @t{epoch} +ranges from 1943 to 1948, plus some contain -1. + @code{decimal} is the decimal point character. The observed values are @samp{.} and @samp{,}.