On Mon, May 17, 2010 at 09:54:49AM -0300, Rodrigo Montenegro wrote:
> I still can't print the error message containing the wrong chars to the user.
>
> Subversion sends the following message:
>
> "[Error output could not be translated from the native locale to UTF-8.]"
See http://subversion.tigr
The code is quite long because I test other stuff beyond the chars, but I
can show you an short example that give us the same effect:
#!/usr/bin/python
import sys
import os
def dump(msg):
sys.stderr.write(str(msg) + '\n')
os.putenv('LANG','pt_BR.UTF8')
dump('ç')
sys.exit(1)
_
On May 17, 2010, at 07:54, Rodrigo Montenegro wrote:
> After I set the environment variable LANG to pt_BR.UTF8 the string of the
> filename seems to be correct since I do not have to process it anymore to
> compare to undesirable chars.
>
> The main goal has been achieved, the script is blockin
Ppl,
After I set the environment variable LANG to pt_BR.UTF8 the string of the
filename seems to be correct since I do not have to process it anymore to
compare to undesirable chars.
The main goal has been achieved, the script is blocking undesirable chars
but I still can't print the error messag
On May 14, 2010, at 07:40, Rodrigo Montenegro wrote:
> On Thu, May 13, 2010 at 22:42, Ryan Schmidt wrote:
>> On May 13, 2010, at 12:29, Rodrigo Montenegro wrote:
>>
>>> I am trying to block the users committing files with non-ASCII characters
>>> in their names during the pre-commit hook script,
On May 13, 2010, at 12:29, Rodrigo Montenegro wrote:
> I am trying to block the users committing files with non-ASCII characters in
> their names during the pre-commit hook script, but when I get the list of
> files being committed with "svnlook changed" the filenames are completely
> messed up
On May 13, 2010, at 10:29 AM, Rodrigo Montenegro wrote:
> Hey guys!
>
> I am trying to block the users committing files with non-ASCII characters in
> their names during the pre-commit hook script, but when I get the list of
> files being committed with "svnlook changed" the filenames are comp
Hey guys!
I am trying to block the users committing files with non-ASCII characters in
their names during the pre-commit hook script, but when I get the list of
files being committed with "svnlook changed" the filenames are completely
messed up.
For example, a file named "ação.txt" when committed