Bug 95627 - doxygen-1.4.3 doesn't build with Japanese style dates
Bug#: 95627 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Other Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: nerdboy@gentoo.org Reported By: chriswhite@gentoo.org
Component: Applications
URL: 
Summary: doxygen-1.4.3 doesn't build with Japanese style dates
Keywords:  
Status Whiteboard: 
Opened: 2005-06-09 20:27 0000
Description:   Opened: 2005-06-09 20:27 0000
Doxygen installation performs the following sed:

cat doc/doxygen.1    | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxygen.1 ; \

cat doc/doxytag.1    | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxytag.1 ; \

cat doc/doxywizard.1 | sed -e "s/DATE/\$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > $(INSTALL)/$(MAN1DIR)/doxywizard.1 ;

notice the \ before $(DATE) and notice that $(VERSION) doesn't have it either.  This unfortunately produces the following side effect:

cat doc/doxygen.1    | sed -e "s/DATE/\6月 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxygen.1 ; \
cat doc/doxytag.1    | sed -e "s/DATE/\6月 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxytag.1 ; \
cat doc/doxywizard.1 | sed -e "s/DATE/\6月 2005/g" -e "s/VERSION/1.4.3/g" > /var/tmp/portage/doxygen-1.4.3/image//usr/man/man1/doxywizard.1 ;
sed: -e 表現 #1, 文字数 19: invalid reference \7 on `s' command's RHS
sed: -e 表現 #1, 文字数 19: invalid reference \7 on `s' command's RHS
sed: -e 表現 #1, 文字数 19: invalid reference \7 on `s' command's RHS

note that in Japanese, the form is [month number][month kanji] [year].  The fact that the number is first causes sed to want to do a bizzare replacement scheme because of \6 being there.  now, why the \ is there in the first place is beyond me.. it doesn't look necessary.  Therefore I have attached a Makefile.in patch to take care of the situation.

------- Comment #1 From Chris White (RETIRED) 2005-06-09 20:28:53 0000 -------
Created an attachment (id=60961) [details]
doxygen-1.4.3-nls.patch

Patch for Makefile.in

------- Comment #2 From Steve Arnold 2005-06-10 22:33:03 0000 -------
See doxygen-1.4.3-r1...   Thanks.