[unixODBC-support] Critical issues Please Help

Martin J. Evans bohica at ntlworld.com
Fri Oct 12 09:52:35 BST 2012


On 12/10/12 09:04, Wajid Baig wrote:
> Hi Nick,
>    Regarding local my question
>   in -lx what should be x. Is it a number or string. Because when I give command locale result is
>
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=

I've not been following this properly but the argument to setlocale can be found from the man 3 page for setlocale:

  man 3 setlocale

char *setlocale(int category, const char *locale);

so it is a char * and so it is a string.

Martin

> On Fri, Oct 12, 2012 at 3:40 AM, Nick Gorham <nick at lurcher.org <mailto:nick at lurcher.org>> wrote:
>
>     On 11/10/12 22:58, Wajid Baig wrote:
>>
>>     Hi Nick,
>>
>>       I am facing very critical issues. I am using 2.2.14.
>>     Issue 1:
>>
>>     isql utility is not printing Column  names in header. I see header box as empty.
>>     *When I debug, giving breakpoints at functions SQLColAttribute and SQLColAttribute gdb is not stoping. No call is made to these functions. I am facing this issue both without using -c and -d and with using this parameters.*
>>     *Can you tell me what could be the issue?*
>
>     Look at the code, I think I used SQLDescribeCol to get the name. But anyway, it will be the driver thats not returning them, not isql. You dont say what driver you are using.
>
>
>>     Issue 2:
>>
>>      Locale:
>>      What should be x when using "-lx" parameter in isql utility?
>>
>>
>     Again, the code is your friend. The arg to the -l option is passed to
>
>     setlocale( LC_ALL, arg );
>
>     --
>     Nick
>
>     _______________________________________________
>     unixODBC-support mailing list
>     unixODBC-support at mailman.unixodbc.org <mailto:unixODBC-support at mailman.unixodbc.org>
>     http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support
>
>
>
>
> --
>
> Sincerely
> Baig
> 09176627037
>
>
> _______________________________________________
> unixODBC-support mailing list
> unixODBC-support at mailman.unixodbc.org
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support
>



More information about the unixODBC-support mailing list