Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hockgow

macrumors newbie
Original poster
Mar 3, 2011
3
0
I am developing an app that retrieves disk information. I am using the IOKit, more specifically IOMasterPost() and then searching for "BSD Name" via IOServiceGetMatchingServices() to obtain the HDInfo. This works fine on english systems. The problem is when I run on a Japanese machine and I presume other foreign localized machine 'BSD Name' cannot be found. On Japanese machines the HDD information is actually stored under 'BSD xxx' (where xxx are Japanese characters).

The good thing is if the 'language and text' on the Japanese machine is changed to english, 'BSD name' works. So the question is there a IOKit system constant that I can use to get the 'BSD name' string equivalent? Or can I temporarily change the localization in 1 function such that 'BSD name' will work?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
How are you generating the matching dictionary? Maybe you should use IOBSDNameMatching(). Otherwise post your code because it's not 100% clear what you're doing.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.