bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in format?


From: Peter Dyballa
Subject: Bug in format?
Date: Wed, 12 Dec 2001 18:05:39 +0100

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing
list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1 (macos-cw)
 of 2001-12-12 on ¡Mein-Titan!
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

To output holidays I set:

calendar-date-display-form's value is
((format "%2s, %2s. %9s %4s"
  (substring dayname 0 2)
  day monthname year))

This function works well for all months containing no 8bit character:

Di,  1.    Januar 2002: Neujahr
Mi, 13.   Februar 2002: Aschermittwoch
Do, 14.   Februar 2002: Valentinstag
Fr,  8.  März 2002: Internationaler Frauentag
Mi, 20.  März 2002: Frühlings-Tagundnachtgleiche um 8:16pm (MEZ)
Do, 28.  März 2002: Gründonnerstag
Fr, 29.  März 2002: Karfreitag
Sa, 30.  März 2002: Karsamstag
So, 31.  März 2002: Sommerzeit beginnt um 2:00am (MEZ)
So, 31.  März 2002: Ostersonntag
Mo,  1.     April 2002: Ostermontag
Mo,  1.     April 2002: 1. April
Mo, 23. September 2002: Herbst-Tagundnachtgleiche um 6:55am (MESZ)


Trying in *scratch* these

(message "%s" (format "%2s, %2s. %9s %4s" "Fr" "13" "März" "2001"))
(message "%s" (format "%2s, %2s. %9s %4s" "Fr" "13" "M\x8e4rz" "2001"))
(message "%s" (format "%2s, %2s. %9s %4s" "Fr" "13" "September" "2001"))

leads to the same faults. minibuffer displays first output's monthname
as 'M<box of 4 chars>rz'. *Messages* receives for second line only the
first character "F" to display (minibuffer sees all)!

holidays.el contains in lines# 209-211:

         (day (int-to-string (extract-calendar-day date)))
         (month (int-to-string month))
         (year (int-to-string (extract-calendar-year date))))

so a format of strings is correct. In calendar.el I have changed lines#
2406-2413:

(defvar calendar-day-name-array
  ["Sonntag" "Montag" "Dienstag" "Mittwoch" "Donnerstag" "Freitag"
"Samstag"]
  "Array of capitalized strings giving, in order, the day names.")

(defvar calendar-month-name-array
  ["Januar"  "Februar"  "März"  "April"   "Mai"      "Juni"
   "Juli"    "August"   "September" "Oktober" "November" "Dezember"]
  "Array of capitalized strings giving, in order, the month names.")

Using

  ["Januar"  "Februar"  "M\x8e4rz"  "April"   "Mai"      "Juni"

leeds to "ä" being output as "â" (permille/perthousand).
--
Greetings

  Pete





reply via email to

[Prev in Thread] Current Thread [Next in Thread]