Thanks Douglas. What you said is worked for me.

By the way, let me mention one thing.

When you build rpm for fedora12 on fedora 12, you don't have to make
this change. But when you build rpm for centos-5 on fedora 12
you have to add LC_ALL like above. This means that mock environment
created for centos-5 and fedora 12 is a little bit different from this
point of view.

_lvnd_
(^_^)



On Wed, Apr 6, 2011 at 6:49 PM, Douglas Hubler <[email protected]> wrote:
> On Wed, Apr 6, 2011 at 11:07 AM, Levend Sayar <[email protected]> wrote:
>> In fact, I tried that escape sequences yesterday. I am trying to have
>> rpm build environment on my development machine.
>> And trying to build rpm packages for CentOS-5 on my Fedora 12 machine.
>>
>> make sipXconfig.rpm failed at this file.
>>
>> It did not work.
>>
>> "Robot operatör" is a dial plan name. It is in Turkish. In eclipse
>> editor you can write directly like this. It encodes file as UTF-8.
>> Nothing changes 'ö' character to \u00f6 automatically. When I changed
>> 'ö' character like
>>
>> Robot operat\u00f6r
>>
>> compilation still failed.
>
> According to this report
>  https://bugzilla.redhat.com/show_bug.cgi?id=650134
> You should be able to pass environment variables thru mock so try adding
>   LC_ALL=en_US.UTF-8
> before each call to mock.  Or maybe the LANG var
>
>
> so in 10-rpm.mak.in, change this
>
> %.rpm-by-mock : repo-webserver
>        mock $(MOCK_OPTS) \
>          --no-clean \
>          --no-cleanup-after \
>          --rebuild \
>          $($(PROJ)_RPM_DEFS) \
>          $(MOCK_SRPM_DIR)/$($(PROJ)_SRPM)
>
> to this
>
> %.rpm-by-mock : repo-webserver
>        LC_ALL=en_US.UTF-8 mock $(MOCK_OPTS) \
>          --no-clean \
>          --no-cleanup-after \
>          --rebuild \
>          $($(PROJ)_RPM_DEFS) \
>          $(MOCK_SRPM_DIR)/$($(PROJ)_SRPM)
>
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to