Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1145 (closed defect: duplicate)

Opened 13 years ago

Last modified 12 years ago

[PATCH] kid.encoding setting in ap.cfg doesn't work

Reported by: Joost Owned by: anonymous
Priority: normal Milestone: 1.0b2
Component: TurboGears Version: 1.0b1
Severity: normal Keywords: Encoding, initialization, i18n
Cc:

Description

view.base._load_engines() gets called before the config files are loaded, thus always defaulting to "utf-8" encoding. Function should be called after the framework has been initialized.

Attachments

1145.patch Download (994 bytes) - added by Joost 13 years ago.
1145.2.patch Download (767 bytes) - added by Joost 13 years ago.
Correct one :)

Change History

Changed 13 years ago by Joost

Changed 13 years ago by Joost

Correct one :)

comment:1 Changed 13 years ago by Joost

  • Summary changed from kid.encoding setting in ap.cfg doesn't work to [PATCH] kid.encoding setting in ap.cfg doesn't work

Not sure if this is the right place to add framework specific startup calls. But you guys get the idea.

comment:2 Changed 13 years ago by mbevan

This problem has existed in trunk, since [1788]; the applicaion of [1728] and one other patch from the 1.0 branch. Until this is officially fixed, I've solved it in my installation by moving _load_engines() back into choose_engine().

comment:3 Changed 13 years ago by max

  • Milestone set to 1.0b2

comment:4 Changed 13 years ago by max

  • Keywords initialization, i18n added; initialization removed

comment:5 Changed 12 years ago by Joost

  • Status changed from new to closed
  • Resolution set to duplicate

comment:6 Changed 12 years ago by chrisz

This is also handled in #1277.

Note: See TracTickets for help on using tickets.