Edgewall Software

Ticket #1115 (reopened defect)

Opened 4 years ago

Last modified 3 weeks ago

default_charset option not working

Reported by: trustin@… Owned by: jonas
Priority: normal Milestone: 0.11.2
Component: i18n Version: 0.11
Severity: normal Keywords: source charset
Cc: tiger@…, dlin@…

Description

Source browser assumes the encoding of source codes is UTF-8. It would be nice if trac can auto-detect the actual encoding or use the config entry from trac.ini, and convert them to UTF-8 using iconv.

Attachments

Change History

Changed 4 years ago by anonymous

  • component changed from general to browser

Changed 4 years ago by anonymous

  • priority changed from normal to highest
  • severity changed from normal to critical

Changed 4 years ago by cmlenz

  • keywords charset added; browse encoding removed
  • priority changed from highest to normal
  • status changed from new to closed
  • resolution set to worksforme
  • severity changed from critical to normal

TracIni has a default_charset option for this:

[trac]
default_charset = iso-8859-1

Changed 4 years ago by twenim@…

  • status changed from closed to reopened
  • resolution worksforme deleted

Default_charset option is not working

Environment

  • OS : RedHat? 9
  • Environment variable : LANG=ko_KR.eucKR
  • Trac.ini :
    [trac]
    default_charset = iso-8859-1
    

example

검색:      Navigation
twe로 로그인 로그아웃 설정 도움말 
FAQ 
접근성 
Trac에 대해 
위키 시간 순 이력 로드맵 소스 둘러보기 티켓 보기 티켓 등록 검색 
Revision Log 
root/trunk/xdocs/회의록/2005010402 요구사항과 계획수립.txt
View revision:  Revision 2 (by twe, 01/10/05 17:34:48)  최초 임포트 
 

¡Ü À¯ÁîÄÉÀ̽º
- ÀÎÅͺä´ë»óÀÚ : Áö¿¬½Ä, ÀÌÁÖ¿±, »çÀå´Ô, ±è°æÅÂ, ½Å¿ë¼ö, °­Á¤¿Ï, ±èÀÎÈ£, ½ÉÁØÇö
- ÀÎÅͺ丮Æ÷Æ®

- »ç¿ø °ü¸® : Á¶Á÷µµ, »ç¿ø, ºÎ¼­, ÀÎÁõ, ±ÇÇѼ³Á¤, ±ÙÅÂ, ÃâÅð±Ù, Á÷±Þ
- Task °ü¸® (ÇöÀçÂÊÁö, À̽´°ü¸®, ÀÏÁ¤°ü¸®, ÀüÀÚ°áÀç Æ÷ÇÔ)

Changed 4 years ago by cmlenz

  • summary changed from Source browser should support other encodings than UTF-8 to default_charset option not working

Shouldn't you be using a default_charset of euc-kr instead of iso-8859-1 there?

Changed 4 years ago by twenim@…

  • status changed from reopened to closed
  • resolution set to worksforme

Changed 3 years ago by tiger@…

  • status changed from closed to reopened
  • resolution worksforme deleted
  • version changed from 0.8 to devel
  • component changed from browser to changeset view

default_charset works for code browser but does not affect for changeset view. Native chars in diffs' display are jammed.

Changed 3 years ago by cmlenz

What exact revision are you using? This looks related to #1556 and #1457, both of which should be fixed in trunk.

Changed 3 years ago by tiger@…

  • cc tiger@… added

I'm using [1585]. I can't upgrade to latest trunk version to check if this issue exists there as well due to #1535.

Instead of national chars there is ?????? sequences in the changest view, but the commit log message in the top of the page is ok.

Changed 2 years ago by cboos

  • status changed from reopened to closed
  • resolution set to fixed
  • milestone set to 0.10

I believe this should now work correctly in 0.10.

Changed 3 weeks ago by dlin@…

  • status changed from closed to reopened
  • cc dlin@… added
  • component changed from version control/changeset view to i18n
  • version changed from devel to 0.11
  • milestone changed from 0.10 to 0.11.2
  • resolution fixed deleted

I use trac v0.11 + mercurial + apache

I've set the apache's httpd.conf

PythonOption? TracLocale zh_TW.utf8

And trac.ini [trac] default_charset = big5

It can't work, I remember it workable in 0.10, is that caused by genshi? Now, I can display Chinese in trac's page, but can NOT display source code which is big5 coded.

Add/Change #1115 (default_charset option not working)

Author



Change Properties
<Author field>
Action
as reopened
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.